Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding code to the click event of a dynamic command button
Message
De
14/04/2005 13:12:13
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Adding code to the click event of a dynamic command button
Versions des environnements
Visual FoxPro:
VFP 7
Divers
Thread ID:
01004762
Message ID:
01004762
Vues:
65
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform