Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting VB to VFP 6.0 code
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00442866
Message ID:
00442880
Views:
13
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>Can anyone convert these VB lines of code to vfp?
>>>Dim oAddrLookup As New TBMAddressLookup
>>>Dim oLookupResult As TBMAddressLookupResult
>>>oaddrLookup.SourceTBMMap=TBMMap1
>>>Set oLookupResult=oAddrLookup.LookupAddress('address1','address2','','')
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

You need to know two pieces of information: what DLL or EXE holds the TBMAddressLookup class? And what is the value of TBMMap1? Is it a name of a file? A reference to a previously created object?

If you get that info it will look something like this:

oAddrLookup = createobject("TheDLL.TBMAddressLookup")
oaddrLookup.SourceTBMMap=TBMMap1
oLookupResult=oAddrLookup.LookupAddress('address1','address2','','')
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform