Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing ASP Parameters to a VFP COM DLL
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Passing ASP Parameters to a VFP COM DLL
Divers
Thread ID:
00303820
Message ID:
00303820
Vues:
58
Hi:

I'm using W2000 Professional and IIS 5.0. Currently I'm unable to pass ASP "form elements" to my VFP COM DLL. For example:

{VB Script Code}
SET oCalculate = server.CREATEOBJECT("SquareNumbers.Generate")
FirstNumber = REQUEST.FORM("FirstNumber")
SecondNumber = REQUEST.FORM("SecondNumber")
MyResult = oCalculate.HowManySquareUnits(FirstNumber,SecondNumber)

This is a simple DLL that just calculates the square of two numbers--I'm learning to crawl here with ASP and VFP COM :-)

In my VFP Error event I get a "data type mismatch" when I multiply the two parameters together:

FUNCTION HowManySquareUnits
LPARAMETERS FirstNo,SecondNo

LOCAL lnResult

lnResult = FirstNo*secondNo && It errors here!--the data types are Logical

RETURN lnResult
ENDFUNC

The real funny thing is that if I pass literals it works!
MyResult = oCalculate.HowManySquareUnits(123,456) This works!

What am I doing wrong here?

Thanks for all your input, and for all the other responses regarding my previous question with the "File Access Denied"--all of your responses were very helpful!

--Paul
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform