General information
Category:
Coding, syntax & commands
Title:
Weird error message...
Hello,
I am getting the following error message (at random times):
"THISFORM can only be used within a method."
The reason that I think that it is weird, is that the line of code the error points to is within a program and
does not have any references to "THISFORM" in it. The actual line of code from the program is:
COUNT FOR tcBatch = Batch_name TO lnBatchTotal
All of the variable references are local to this program and in no way refer back to a form method or property.
Does this make sense? Has anyone else encountered any errors like this before? My concern is the
randomness of the error and that a couple of people in our Test group are also getting it at times.
When I get the error and go into the debugger, I am sitting on the aforementioned line of code. I then step
into the next line of code and the program continues without a problem.
Any thoughts or suggestions?
Thanks....douglas
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only