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:
00145501
Views:
32
Michelle,

It kind of looks to me like you've jumped into the middle of the example code and don't have all the right part in place yet. Is it possible that the MapObjects.AddressLocation isn't properly registered on your system? If you start REGEDIT look in the HKEY_CLASSES_ROOT tree after the file extensions you should see MapObjects.AddressLocation down there if it's a server that properly registered.

Matcher will have to be some other object too.

>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)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform