Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command button programatically firing
Message
 
To
25/03/2002 11:32:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00636847
Message ID:
00636969
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.

YES, that example helped alot, got me on track. 1 quest I have though is that I substituted a textbox for the cmdbuttons in the example and I want the textbox to start off with a value taken from a .mem var. Where do I put my "restore from l:gooddate.mem addit" statement to make it work? Right now it's telling me "GOODDATE" is not found.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform