Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I use a parameter
Message
 
 
À
12/06/2001 21:31:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00518121
Message ID:
00518685
Vues:
10
>>>You can use macro substitution. For example:
>>>local lcVar
>>>lcVar='page'+alltrim(str(x))
>>>thisform.pageframe1...myproperty=.t.
>>
>>Hi Danko,
>>
>>I would write it this way:
>>
>>
store .t. to ('thisform.pageframe1.'+m.lcVar+'.myProperty')
>>
>>No macro substitution.
>
>And since this is a pageframe, and we're actually dealing with the page's index, I'd write it as
>
>
thisform.pageframe1.pages[x].myproperty=.t.
>
>Not even a name expression - just plain assignment statement.

Beat me, he-he-he :)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform