Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can someone explain why macro needs to have 2 dots?
Message
 
 
À
19/02/2007 07:09:25
Suhas Hegde
Dental Surgeon
Sirsi, Inde
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:
01197005
Vues:
16
>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.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform