Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access the FORM properties
Message
From
06/10/2005 08:37:45
 
 
To
06/10/2005 05:06:47
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01056641
Message ID:
01056692
Views:
17
>Hi,
>I have command button on a form, the click event will call a user define function to run something. But in the function will access a properties on the form.
>
>For example
>
>
>function check_count()
>ncnt = thisform.count
>....
>Return .t.
>
>
>I got an error said that thisform only use in METHOD.
>
>How can I solve it ?

Make the function a method of the form. If you need it in many forms, add it to a form class.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform