Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigning value to property of object indirectly
Message
From
25/11/2015 09:51:11
Walter Meester
HoogkarspelNetherlands
 
 
To
24/11/2015 11:23:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01627690
Message ID:
01627870
Views:
62
>>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform