Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Assign method for a std. memvar
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01272418
Message ID:
01272488
Views:
20
>>You can do a lot with #DEFINE and I might be able redefine the memvar so that it points at the new class and the property. Not sure if that's possible, but I think it is.
>
>This might work for you. Notice that you can't name your property the same as the variable because the #DEFINE has "issues" with that later on in the code.
>
>
#DEFINE SomeVar ovar.SomeVarProp
>ovar=CREATEOBJECT("varobj")
>
>SomeVar = 5
>SomethingElse = SomeVar
>? SomethingElse
>? SomeVar
>DISPLAY MEMORY LIKE Some*  && Only see the SomethingElse variable
>
>#undefine SomeVar
>DEFINE CLASS varobj as Relation
>SomeVarProp = NULL
>FUNCTION SomeVarProp_assign(xval)
>this.SomeVarProp = xval
>ENDFUNC
>ENDDEFINE
Yeah, that's basically what I was thinking about, but I haven't had time to mess around with it, yet. Thanks.
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Previous
Reply
Map
View

Click here to load this message in the networking platform