Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing/assigning a value by reference
Message
From
09/04/1999 10:51:59
 
 
To
08/04/1999 22:03:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00206498
Message ID:
00206898
Views:
20
This is what my VB friend (actually, TechSupport at Mapinfo) said:
>>
In VB, SET creates a pointer to the object on the right side of the equals sign.
You could also say this as: SET gets an object into a variable by reference.

So armed with this knowledge, is there a way to set a pointer on the left to an object on the right in VFP?
If so, this is what needs to be done, I believe, to get this to work in VFP.
<<

This was in response to a problem I'm having when I try to assign an object reference to a property of Mapinfo's Mapx object. Like this:

oMap=CreateObject('Mapx.Map.2')
olayer=oMap.Layers["USA"]
oMap.Layers.AnimationLayer=oLayer

This third line generates a Type Mismatch error in VFP even though the equivalent VB, VC, Access, Delphi, PB, Domino, code apparently works fine. You mentioned using an API to create a pointer. Is that the same as the _Store() API referenced in the VFP help?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform