Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error: THISFORM can only be used within a method
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00144196
Message ID:
00144430
Views:
33
Jean-René,
Do you have a filter on any table which might include a 'thisform.MyVariable' as part of a where clause? Or any view or query or other SQL?

Barbara

>From a method of a form I call a function located in a PRG (Library.prg) ex: deleteAccnt(lcID_Cust,lcID_CORP,ID_btn,ID_donnee)
>
>I have a SET PROCEDURE TO LIBRARY.PRG and ON ERROR MYDebug(messages()...) done in my code.
>
>In the function deleteAccnt(), at one point I do a LOCATE FOR ...
>
>The first time I call the function ( only the first time) my ON ERROR is call and I get the error messages "THISFORM can only be call from a method"
>
>I do not use the THISFORM key word in my fonction.
>
>Iny one had this problem?
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform