I've been seeing this all over the place, using the old variable symbol assignments etc. It is possible to use methods similar to Visual Basic in DarkBASIC Professional when declaring variables.
Global variables can be declared using these conventions.
Global intVariable1 As Integer
Global fVariable2 As Float
Global strVariable3 As String
As you can see, variables used throughout the application do not need to use the symbols as DarkBASIC Professional knows how they were declared.
The same goes for inline variable declaration in functions.
FUNCTION MyFunc( intVar1 As Integer, strText As String)
intResult As Integer
strDescription As String
Rem function code here
ENDFUNCTION intResult
If you use these tactics, it will avoid potential math bugs like the one above.
"Man who looses key to woman's appartment...... He get no nookie" - A wise chinese man.