Click to See Complete Forum and Search --> : Getting the output parameter(i.e. byref variable ) in ASP


sairamrs
July 19th, 1999, 05:57 AM
Hi

I am ASP Programmer

I have created an activex DLL in VB.One function procedure of that DLL has 4 parameters.All are called by referrence.When I am calling the method from the dLL through VB 6.0 I am able to get the
output parameter & return value perfectly.But the same when I call through ASP (Server Side) I could get the return value or only one output parameter.If I am adding more than one in the
Browser it gives Type MisMatch error.PLease let
me know if there is any limitations in Calling a com component through ASP.

Regards
sairam

Demetresz
July 20th, 1999, 08:42 AM
There are 2 solutions to your problem.
1. ASPs handle only variant datatypes so your parameters must be variant.

2. If the above wouldn't work do what I mostly do. I make my sub a function with a returning datatype variant. As soon as the function completes its work it returns an 1. Also I expose Read-Only Properties into which I put what the function should return in its ByRef parameters (if it had any). This solution works for sure.

sairamrs
July 21st, 1999, 12:04 AM
Hi
Thank You for your mail.

I have found the solution for it.ASP works well any number of output parameters
& return value.Only thing we have to ensure when we return an array as parameter
use "as variant" instead of "as variant"

REgards
R.Sairam