Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Com Automation Problems with Quick Address
Message
De
19/01/2004 12:45:48
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Com Automation Problems with Quick Address
Divers
Thread ID:
00868194
Message ID:
00868194
Vues:
60
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform