Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating an object implicity
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00141992
Message ID:
00142081
Views:
35
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform