Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird error message...
Message
From
14/03/2000 17:19:58
 
 
To
14/03/2000 16:37:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00345560
Message ID:
00345582
Views:
17
>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?
>

Does the table you are COUNTing in have a filter set to a form property? It looks like the table is trying to evaluate the records for a filter, and cannot resolve THISFORM.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform