Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Command buttons with code programatically
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Create Command buttons with code programatically
Divers
Thread ID:
00999180
Message ID:
00999180
Vues:
68
Hi.
I have a stock file with say 50 groups(can be variable) and say 20-25 stock codes in each group.

I want to create one commandbutton on a form for each group (so I end up with say 50 buttons)
(This bit I think I can do )

In the click event of each button I want to run code like:
Select * from MyStockFile where Stock_group = MYGROUP
... but the MYGROUP is variable (Being the Group that related to the commandbutton)

Is there a way of dynamically inserting the code that will run from the click event as it will depend on the Stick Group?

Any suggestions very welcome.

Regards,

Gerard
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform