Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigning value to property of object indirectly
Message
From
21/11/2015 05:28:38
 
 
To
21/11/2015 05:22:22
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:
01627715
Views:
47
>>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")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform