Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command button programatically firing
Message
From
25/03/2002 11:32:29
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00636847
Message ID:
00636868
Views:
16
Timothy,

In VFP help, look at the example under the addObject method. That example creates a form and adds 3 command buttons, and shows code in the click() method of each commandButton.

>>>Hello, I created a form non-visually using "CREATEOBJECT("Form")" and in my with/endwith statement defined the characteristics for a commandbutton. However, since I don't usually create forms this way, I'm not sure how to test for the commandbutton being clicked. any ideas? thanks
>>
>>I think you need to add a Click() method to the button. This can be done by adding a CommandButton based on a class of yours.
>>
>>HTH, Hilmar.
>
>Wuld that be inserted within the with/endwith statement? Can you give an example? thanks.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform