Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can someone explain why macro needs to have 2 dots?
Message
De
19/02/2007 10:59:04
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01196999
Message ID:
01197042
Vues:
12
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"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform