Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the same method for all fields in a grid
Message
De
26/06/2001 08:09:55
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Setting the same method for all fields in a grid
Divers
Thread ID:
00523476
Message ID:
00523476
Vues:
48
I often use a grid with a doubleclick event that fires a method
ie

Thisform.GridDoubleClicked()

At present I have to add this code to the double click event for each field in my grid.

I would prefer that my grid class to checks to see if my form has the method ThisForm.GridDoubleClicked and if it does then populate the double click event for each field in the grid with a call to the method ThisForm.GridDoubleClicked.

I suppose one way would be to use a text box class of my own design and have my grids use that as the default field type.

the doubleclick method for these field types could read something like

if pemstatus(_screen.activeform,'GridDoubleClicked',3)='Method')
thisform.GridDoubleClicked
return


but that seems an awful long way round to do it.

All Help most gratefully received
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform