Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Passing parameters to COM object in ASP
Versions des environnements
I am running a MTDLL VFP COM object from a ASP page using the following syntax...
Set oTest=Server.CreateObject("comtest.QuoteEngine")
oQuote = oTest.GetQuote('05/07/05','TQ110BU','DOG','HUSKY','M','05/05/02')
The resulting ASP page shows the following error...
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/quote.asp, line 9, column 24
oQuote = oTest.GetQuote('05/07/05','TQ110BU','DOG','HUSKY','M','05/05/02')
-----------------------^
I guess there is something wrong with the way I am passing parameters. Can anyone throw any light on how to solve this problem? Do I have to create page 'variables' for each parameter first?
Also, instead of passing every parameter as a character string, how do I pass numeric, date and logical parameters?
Any help would be appreciated.
Alan
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement