Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating an object implicity
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00141992
Message ID:
00142081
Vues:
36
I guess you missed the first post. :)

I can't instantiate it because it says it can't find a class definition for AddressLocation. Another helper said it wasn't a creatable object, that it had to be created by the method.

Thanks,

-Michelle


>Hi Michele! Have you tried using CreateObject() to instantiate the AddressLocation object as well?
>
>loAddLoc = CreateObject("MapObjects.AddressLocation")
>
>...
>
>loAddLoc = matcher.MatchAddress(Text1.Text)
>
>Just a thought...
>
>>I don't know what the method code looks like. It says it returns an object, and in the VB code, it "dim"s the result as an object.
>>
>>What I'm wondering is, if it _doesn't_ return an object, why would VFP complain loResult isn't an object. And if it _does_ return an object, why doesn't VFP just make loResult an object?
>>
>>And why can VB instansiate it as an object and VFP can't? Although that may be a MO question...
>>
>>Here's the VB code:
>>
>>Dim addloc As MapObjects.AddressLocation
>>
>>...
>>
>>Set addloc = matcher.MatchAddress(Text1.Text)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform