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.