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 10:59:04
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01196999
Message ID:
01197042
Views:
11
Decided to create a new thread...

>>>>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 ???
>>>>
>>>>
>>>>
>>>>suhashegde
>>>
>>>It would be much better to re-write this statement
>>>
>>>store .t. to ("thisform." + m.abc + ".visible")
>>>
>>>No macros at all, which make the statement hard to maintain and slower.
>>
>>I dont use macros but was testing a simple form when i came accross this .
>>
>>thanx all
>
>I understand. For me this sometimes works the same way as red cloth for the bull.
>
>See EVALUATE and macro substitution alternatives Thread #385373
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform