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 08:25:19
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
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:
01197003
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 ???
>
>
&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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform