General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only