Walter Meester
HoogkarspelPays-Bas
Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
>>>>>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.
I uses it, but put a ASSERT GETPEM() ... before it.
The ASSERT exists on the beta version only.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement