Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters to COM object in ASP
Message
De
31/08/2005 21:34:42
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Passing parameters to COM object in ASP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01045717
Message ID:
01045717
Vues:
49
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
Fil
Voir

Click here to load this message in the networking platform