Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I write Validate or InterActiveChange code for g
Message
De
11/09/1999 22:38:12
 
 
À
27/08/1999 17:26:41
Pamela Bulmahn
The University of Iowa
Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00258675
Message ID:
00263741
Vues:
12
Pamela,

Another way is to create a class of the control with the code in it. When you change the ColumnCount property of your grid, by default each column is poplated with a generic textbox. You can then scan through your columns and add the subclassed control to each column...

For each oColumn in Thisform.oGrid.Columns
oColumn.AddObject("myTextBox1","myTextBox")
oColumn.CurrentControl="myTextBox1"
oColumn.myTextBox1.ControlSource="SomeControlSource"
oColumn.ControlSource="SomeControlSource"
Endfor

Before you can do this, you must have defined the class "myTextBox" and have that classlibrary loaded. If you use this method, you can change any method/event to meet your needs.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform