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:55:10
 
 
To
25/11/2015 09:51:11
Walter Meester
HoogkarspelNetherlands
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:
01627871
Views:
47
>>>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform