Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can someone explain why macro needs to have 2 dots?
Message
From
19/02/2007 08:25:19
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
19/02/2007 07:09:25
Suhas Hegde
Dental Surgeon
Sirsi, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01196999
Message ID:
01197003
Views:
19
>hello all,
>
>Can some 1 explain This ?
>
>m.abc = 'Containername'
>
>thisform.&abc..visible = .t. --- && Works
>thisform.&abc.visible = .t. --- && fails error thisform.containernamevisible not found ???
>
>
&abc.

& is like (
. is like )

(abc)

It is much better to avoid & in your example.

m.loObject = eval("thisform." + m.abc)

m.loObject.Visible = .t.
Previous
Reply
Map
View

Click here to load this message in the networking platform