![]() |
Calling Procedures![]() ![]() ![]() ![]() ![]()
To call procedures, include the name of the procedure in a command. If you are calling JScript procedures from VBScript, you must use parentheses after the procedure name, if the procedure has no arguments, use empty parentheses. If you are calling either VBScript or JScript procedures from JScript, always use parentheses after the procedure name. For VBScript, you can also use the Call Keyword when calling a procedure. However, if the procedure that you are calling requires arguments, the argument list must be enclosed in parenthesis. If you omit the Call Keyword, you also must omit the parenthesis around the argument list. If you use Call syntax to call any built in or user defined function, the function's return value is discarded. The following example illustrates creating and calling procedures by using two different scripting languages (VBScript and JScript)
<%@ LANGUAGE VBSCRIPT>% Response. Write (x. to String())
|
|
Domain NamesASP IDC and HTX Files Creating ASP Pages Adding Script Commands Mixing HTML and Script Commands ASP Directives Setting the Primary Scripting Language Using VBScript and JScript on a Server Variable Scope Session Scope Application Scope
Defining Procedures Calling Procedures Components ASP ApplicationsWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |