Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning value to property of object indirectly
Message
De
21/11/2015 05:28:38
 
 
À
21/11/2015 05:22:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01627690
Message ID:
01627715
Vues:
49
>>STORE "Store" TO ("_screen." + "Caption")
>>= ADDPROPERTY(_screen, "Caption", "AddProperty")
>>_vfp.SetVar("_screen.Caption", "_vfp.setvar")
>
>addproperty is not good.
>it work with a missed property.

Said so myself in direct answer to Albert - but might actually be a benefit here, as it guarantees the property after the call to set it in both cases.
But _vfp.SetVar does NOT work on my machine with object.property, only with memvars:
_vfp.SetVar("m.myvar", "_vfp.setvar")
_vfp.SetVar("myvar2", "_vfp.setvar")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform