Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I use a parameter
Message
De
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:
00518681
Vues:
14
>>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform