Code: Select all
#lang "fblite"
sub GetFloatNumber(Number,TxtChar)
'Dim Digit as string
'Dim Number as Double
'Dim DotExists as Boolean
'Dim PlusExists as Boolean
'Dim MinusExists as Boolean
BuildNumber(Digit,DigitCount,TxtLine,_
TxtPos,TxtChar,DotExists,PlusExists,MinusExists)
IF (Digit = ".") or (DigitCount = 0) THEN
print "error floating-point number expected"
end if
end sub
GetFloatNumber(Number,TxtChar)
end
Code: Select all
numtest.bas(11) Error 71: Array not dimensioned before "(".
BuildNumber(Digit,DigitCount,TxtLine,_
^
numtest.bas(13) Error 20: Type mismatch, found ")"
IF (Digit = ".") or (DigitCount = 0) THEN
^
What is wrong with the "IF" statement for the second instruction?
Can someone please help me determine what I am doing wrong.