Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set code in the Method or Events in Runtime?
Message
 
 
À
24/08/2013 00:44:09
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Oracle
Application:
Desktop
Divers
Thread ID:
01581252
Message ID:
01581410
Vues:
52
>Hi,
>
>I want to set some coding in the Grid Header Click event in runtime.
>How to do it ?
>
>Please advise.
>
>Thanks.
>Derek

Best approach would be using BINDEVENT() in combination with AEVENTS():
BINDEVENT(THISFORM.Grid.Column1.Header1,"Click",THISFORM,"OnGridHeaderClick")
In THISFORM.OnGridHeaderClick(), using aEvents() to get a reference to the clicked header:
AEVENTS(la,0)
LOCAL loHeader
loHeader = la[1]
loHeader.Caption = "Clicked"

LOCAL loColumn
loColumn = loHeader.Parent
Christian Isberner
Software Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform