Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding code to the click event of a dynamic command button
Message
From
14/04/2005 13:12:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Adding code to the click event of a dynamic command button
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
01004762
Message ID:
01004762
Views:
64
I am dynamically adding controls (Label, TextBox) to a form based upon a SQL SELECT statement. Now, my customer wants a command button to be dynamically available as well to match the controls on the form. There is a 1-to-1 relationship between the command buttons and a set of label and textbox. The code in the button will have to evaluate the content of the TextBox and Label that it is associated with, so it needs to be able to refer to the names of the previously created controls.

I have done some reading of BINDEVENT() which might be applicable, and am also looking at creating a commandbutton class that has the necessary code in its click event.

Can anybody suggest some tried-and-true approaches to the desired functionality?

Thanks in advance for any suggestions.
On a CLEAR day you can see forever.
Next
Reply
Map
View

Click here to load this message in the networking platform