Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution for properties?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00221190
Message ID:
00221194
Vues:
16
>I have a variable that holds a column number and I would like to refer to a grids column via this variable.
>
>ie grdX.column(variable).controlsource = x
>
>This does not work....How can I accomplish this?

One way is to use the grid.columns() array, like

mygrid.columns(3).controlsource = x

also, you can make a string and use macro:

cMacro = "mygrid.column" + alltrim(str(myvar)) + ".controlsource = x"
&cMacro

adjusting myvar for whatever type it is...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform