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
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