Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to click button
Message
 
To
22/11/2005 11:01:48
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01071180
Message ID:
01071187
Views:
21
>Hi,
>
>How to click a button lying on a form thru a short cut menu. On doing so, I face an error "THIS can only be used within a method."
>
>The actual command is 'This.parent.cmdSales.Click'
>
>Please suggest .. Saif

Menu code runs as a separate external program from the form. You will need to use the form object reference to get the button as in;


DO FORM MyForm Name MyForm


In the menu's code you would;


MyForm.cmdButton.Click()
Previous
Reply
Map
View

Click here to load this message in the networking platform