Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically add Button to Grid
Message
 
À
22/12/2009 13:11:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01440173
Message ID:
01440177
Vues:
46
>I have a grid on a form that I need to build from scratch (the columns, etc.) after I run a query and create a cursor. I want to place a Button in the first column so that the user can click the button and "view" the detail of the underlying record.
>
>My problem is that when I reset the grid and add the button, how do I add the code for the click event of the new button which is the current control of column 1?
>
>Thanks.
>
>bob


That is why it is necessary to mention your version of VFP.
In VFP8 or 9 you could use BindEvent function.
In smaller versions you could create your own class based on CommandButton and program all in its Click event.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform