Information générale
Catégorie:
Codage, syntaxe et commandes
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?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement