[futurebasic] Getting a error Variable was expected here

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2004 : Group Archive : Group : All Groups

From: Brian Heibert <bheibert@...>
Date: Thu, 16 Sep 2004 16:44:03 -0500
Here is my open code:

DEF FN readEditField(8001)
FN readEditField (8001)

I am getting this error:

Error:  A Variable was expected here???
In file TBASIC.proj:TBASIC.MAIN at line 173 in HandleMenus
* DEF FN readEditField(*8001)


Note: in my code I do not have those * bullets

Here's the code that is in the FN that is listed above
'~Open Document
mynum = 8001
LOCAL FN readEditField (mynum)
filename$ =FILES$(_fOpen,"tbd~",, vol%)
LONG IF LEN(filename$)
OPEN "I", 8001, filename$,,vol%
READ FIELD #8001, efHandle&
EDIT FIELD #8001, &efHandle&
CLOSE #8001
KILL FIELD efHandle&
END IF
END FN

Brian