Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
THISFORM can only be used within a method
Message
From
10/11/2006 15:26:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
09/11/2006 21:44:13
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
OS:
Windows XP
Miscellaneous
Thread ID:
01168653
Message ID:
01168846
Views:
14
>Hi,
>Does anyone ever find error 1929? THISFORM can only be used within a method. Does anyone have the solution for this error? Thank you.

As Holger says, you simply can't use ThisForm if you are running code that is not in a form.

If you moved some code, this may require some redesign.

For instance, when moving code from a form to a class, you may want to change ThisForm to This. In other cases, you may have an object reference to a form, passed to a function. In this case, change ThisForm to the name of the object (the receiving parameter).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform