Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning value to property of object indirectly
Message
De
25/11/2015 09:51:11
Walter Meester
HoogkarspelPays-Bas
 
 
À
24/11/2015 11:23:20
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:
01627870
Vues:
61
>>>>STORE "Store" TO ("_screen." + "Caption")
>>>>= ADDPROPERTY(_screen, "Caption", "AddProperty")
>>>>_vfp.SetVar("_screen.Caption", "_vfp.setvar")
>>>
>>>addproperty is not good.
>>>it create a missed property.
>>
>>ADDPROPERTY() will just work fine. If the property already exists, it will just set it.
>>
>>Walter,
>
>If the program is incorrect and the property name within the variable is bad,
>the program continue without errors ...

True, but that does mean you cannot use it for this purpose, as its a really fast way of setting a property whos name is in a variable.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform