|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Call a sub
<i><b>Originally posted by : Carol (cxi@frymulti.com)</b></i><br />Hi:<br /> A sub in ASP can be called by:<br /> 1. SubName(Param1,Param2,...)<br />or <br /> 2. Call SubName(Param1,Param2,...)<br /><br />Can somebody tell me what's difference between these two? Thanks!<br /><br /><br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : steve</b></i><br />You are not required to use the Call keyword when calling a procedure. However, if you use the Call keyword to call a procedure that requires arguments, argumentlist must be enclosed in parentheses. If you omit the Call keyword, you also must omit the parentheses around argumentlist. If you use either Call syntax to call any intrinsic or user-defined function, the function's return value is discarded. <br /><br /><br />------------<br />Carol at 6/13/2000 8:36:03 AM<br /><br />Hi:<br /> A sub in ASP can be called by:<br /> 1. SubName(Param1,Param2,...)<br />or <br /> 2. Call SubName(Param1,Param2,...)<br /><br />Can somebody tell me what's difference between these two? Thanks!<br /><br /><br />
|
|
#3
|
|||
|
|||
|
<i><b>Originally posted by : </b></i><br />Thanks a lot!<br /><br /><br />------------<br />steve at 6/14/2000 9:58:33 AM<br /><br />You are not required to use the Call keyword when calling a procedure. However, if you use the Call keyword to call a procedure that requires arguments, argumentlist must be enclosed in parentheses. If you omit the Call keyword, you also must omit the parentheses around argumentlist. If you use either Call syntax to call any intrinsic or user-defined function, the function's return value is discarded. <br /><br /><br />------------<br />Carol at 6/13/2000 8:36:03 AM<br /><br />Hi:<br /> A sub in ASP can be called by:<br /> 1. SubName(Param1,Param2,...)<br />or <br /> 2. Call SubName(Param1,Param2,...)<br /><br />Can somebody tell me what's difference between these two? Thanks!<br /><br /><br />
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Call a sub |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|