Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Com Automation Problems with Quick Address
Message
From
19/01/2004 12:45:48
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Com Automation Problems with Quick Address
Miscellaneous
Thread ID:
00868194
Message ID:
00868194
Views:
61
Hi,

I posted earlier today but the reponse I got wasn't helpful and killed the thread. I've got some code that uses Quick Address and it's giving me a bit of a headache. Here's the VFP code:
CLEAR ALL

loQuickAddress = Createobject( "QAS.QAProWeb" )
=COMARRAY(loQuickAddress, 10) &&10 = zero based pass by reference

RELEASE asSearch, asPreviews, asTags, aiFlags, aiScores, iPotential
DIMENSION asSearch[2] AS Variant
DIMENSION asPreviews[1] AS Variant
DIMENSION asTags[1] AS Variant
DIMENSION aiFlags[1] AS Variant
DIMENSION aiScores[1] AS Variant
DIMENSION iPotential[1] AS Variant

iPotential = 0
asPreviews = ""
asTags = ""
aiFlags = 0 
aiScores = 0
asSearch[1] = "47"
asSearch[2] = "SK11 9XX"
 
loQuickAddress.Search(0, "GBR", 1, asSearch, @iPotential, @asPreviews, @asTags, @aiFlags, @aiScores)
This returns "OLE error code 0x80070057: The parameter is incorrect."

Looking at the object browser the declaration for the method is:
Search(dwFlags As Unsigned Long, strDataID As String, iPromptSet As Integer, astrFields As Variant, piPotentialResults As Variant, pastrPreviews As Variant, pastrTags As Variant, paiFlags As Variant, paiScores As Variant) As Void
Any ideas why I'm getting the error?

Regards

Paul
Next
Reply
Map
View

Click here to load this message in the networking platform