Recommended: Common functions of ASP: CheckBoxScript() Program code % 'Function: Used to check which values of the specified CheckBox' Source: http://www.cncms.com/asp.asp Function CheckBoxScript(ByVal FormElement, ByVal ElementValue) CheckBoxScript = script ipt language=javascript type=text/Javascript vbCrLf String.PRototype. CheckBo
Program code
<%
'Function: determine whether a value exists in an array
'Source: http://www.cncms.com/asp.asp
Function InArray( sValue, aArray )
Dim x
InArray = False
For Each x In aArray
If x = sValue Then
InArray = True
Exit For
End If
Next
End Function
%>
Program code
<%
'Function: determine whether a value exists in an array
'Source: http://www.cncms.com/asp.asp
Function InArray( sValue, aArray )
Dim i
InArray = False
For i = 0 To UBound( aArray )
If aArray(i) = sValue Then
InArray = True
Exit For
End If
Next
End Function
%>
Share: Common functions of ASP: Str4Js() Program code % 'Function: Definition to convert to javascript string output (convention in Javascript, quote strings in single quotes) 'Source: http://www.cncms.com/asp.asp Function Str4Js(sString) Str4Js = sString If IsNull(sString) Then Str4Js = : Exit Function Str4Js = Replace(Str4Js, /, //) Str4J