Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Building an Object
Message
 
À
29/04/1998 15:39:12
Jeff Urso
Urso Technologies, Llc
Madison, Wisconsin, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00095768
Message ID:
00095776
Vues:
19
>My goal is to add to the reference of an object without knowing the complete name of the object to be changed.
>
>eg: a grid on a form is referenced as oGrid.
>
>I want to affect the property of oGrid.column1.width. I want to reference this through a table so I will have the following variable references:
>
> oGrid = Object
> lcColumn = 'column1'
> lcProperty = 'width'
> lnValue = 100
>
>How can I put the 3 above variables together to reference the width of column1 and change it at my discretion from within the program by changing the value of lnValue.
>
>Thank you in advance.
>
>JUrso

Actually you can reference it as oGrid.&lcColumn..&lcProperty = lnvalue

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform