p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: Re: proasp_howto digest: March 30, 2001


Message #1 by "Geoff Higgins" <geoff@v...> on Fri, 30 Mar 2001 12:49:10 +0100
It allows you to call a function without getting the return value.

-----Original Message-----
From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]
Sent: Friday, March 30, 2001 8:49 AM
To: How To
Subject: RE: proasp_howto digest: March 30, 2001


Does the Call keyword serve any other purpose?

-----Original Message-----
From: Geoff Higgins [mailto:geoff@v...]
Sent: Friday, March 30, 2001 12:49 PM
To: How To
Subject: Re: proasp_howto digest: March 30, 2001


 Not exactly true, you can use parentheses but you must use the Call
keyword.

ie. Call mySub(arguaments)

Geoff


> Subject: RE: Problem calling a Function
> From: "Alex Shiell, ITS, EC, SE" <alex.shiell@s...>
> Date: Fri, 30 Mar 2001 10:18:56 +0100
> X-Message-Number: 13
>
> exactly what it says man!  You cannot use parentheses when calling a
sub.
>
> if you are expecting a return value, use this syntax
>
> value =3D function(parameter1, parameter2)
>
> otherwise use this syntax
>
> function parameter1, parameter2
>
> -----Original Message-----
> From: Ankur Kalsi [mailto:ankurak@q...]
> Sent: Thursday, March 29, 2001 6:53 PM
> To: How To
> Subject: Problem calling a Function
>
>
> I am trying to call a function from a DLL I created. It creates an
instance
> of the DLL using Server.CreateObject, but when I try to call the
function
it
> gives me the following error:
> Microsoft VBScript compilation error '800a0414'
> Cannot use parentheses when calling a Sub
>
> Does anybody what is going on and what is the solution of this
problem.
>
> Thanks in advance.
> > Ankur Kalsi


  Return to Index