Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters from VB to VFP ActiveX server
Message
De
20/11/1997 17:51:08
Murray Mcintosh
Mammography Reporting System, Inc.
Seattle, Washington, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00061455
Message ID:
00061504
Vues:
30
>>You stated you used the following syntax:
>>
>>sParams = "Do LoadData With " + sSourceFile + ", " + sDataPath + ", " + sTableName
>>.DoCmd (sParams)
>>
>>I don't see how the above code ever worked since LoadData is a method. Try the following syntax from VB:
>> oFox.LoadData(sSourceFile,sDataPath,sTableName)
>>
>>Murray
>
>
>Tried it.
>
>
> With oFox
> sSourceFile = sSourcePath + "\MODE2.DAT"
> sTableName = "mode2"
> .LoadData(sSourceFile,sDataPath,sTableName)
>
>
>When I try to move to the next line VB's editor pops up an error dialog:
>
> Compile Error
> Expected =
>
> and won't let me go any farther.
>
>I've been working on this (the application not just this bug) for about fifteen hours now, and concede that I'm probably overlooking something.
>
>If you have additional suggestions I'll be appreciative.
>
>Thanks
>
>Jim

Personally I find Auto Syntax checking quite annoying.
If you want to you can turn it off. From the "Tools: pulldown menu select "Options", then from the editor tab of the options dialog turn off auto syntax check.

As for the error, sorry my oversight, Try
oFox.LoadData sSourceFile,sDataPath,sTableName
since LoadData doesn't return a value and also make sure sDataPath is initialized to something.

Murray
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform