Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I use a parameter
Message
From
12/06/2001 21:31:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00518121
Message ID:
00518681
Views:
13
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform