Functions / Procedures in ASP
Is there any way to create functions and/or procedures in an ASP code? I am trying to do an iterative process that would call itself (nested) but I am currently unable to do even a most simple function (eg, js-style). Can anyone advise?
Not sure exactly what you mean. The following is an example from one of my ASP pages where I am including a standard metadata library and several non-standard ASP functions that I wrote and share with several other pages:
ASP/VBScript functions are able to recurse and are structured as follows:
<% @Language=VBScript %>
<% Option Explicit %>
<!-- METADATA TYPE="typelib" NAME="ADODB Type Library"
<!-- #include virtual="/includes/GetAttributes.asp" -->
<!-- #include virtual="/includes/GetMimeType.asp" -->
<!-- #include virtual="/includes/mpRequestParser.asp" -->
MyFunction = return_value
<% @Language=JScript %>
If your web host is using a Windows Server with IIS then, no, there are no issues between using ASP/JScript vs. ASP/VBScript. Microsoft provides support equally for both.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)