Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing/assigning a value by reference
Message
De
09/04/1999 10:51:59
 
 
À
08/04/1999 22:03:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00206498
Message ID:
00206898
Vues:
21
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
Fil
Voir

Click here to load this message in the networking platform