Array()
FUNCTION: Return an array
SYNTAX:Array(list)
ARGUMENTS: Characters and numbers are OK
EXAMPLE:<%
DimmyArray()
Fori=1to7
RedimPreservemyArray(i)
myArray(i)=WeekdayName(i)
Next
%>
RESULT: Create an array of 7 elements myArray
myArray("Sunday","Monday",......"Saturday")
CInt()
FUNCTION: Convert an expression to a numeric type
SYNTAX:CInt(expression)
ARGUMENTS: Any valid character can
EXAMPLE:<%
f="234"
response.writecINT(f)+2
%>
RESULT:236
Convert the character "234" to the number "234", and if the string is empty, return 0 value
CreateObject()
FUNCTION: Creates and returns an instance of the registered ACTIVEX component.
SYNTAX:CreateObject(objName)
ARGUMENTS:objName is the name of any valid, registered ACTIVEX component.
EXAMPLE:<%
Setcon=Server.CreateObject("ADODB.Connection")
%>
RESULT:
CStr()
FUNCTION: Convert an expression to a string.
SYNTAX:CStr(expression)
ARGUMENTS:expression is any valid expression.
EXAMPLE:<%
s=3+2
response.write"Theresultis:"&cStr(s)
%>
RESULT: Convert the number "5" to the character "5".
Date()
FUNCTION: Returns the current system date.
SYNTAX:Date()
ARGUMENTS:None.
EXAMPLE:<%=Date%>
RESULT:8/4/99
DateAdd()
FUNCTION: Returns a changed date.
SYNTAX:DateAdd(timeinterval,number,date)
ARGUMENTS: timeintervallistthetimeintervaltoadd; numberisamountoftimeintervalstoadd; and
dateistactingdate.
EXAMPLE:<%
currentDate=#8/4/99#
newDate=DateAdd("m",3,currentDate)
response.writenewDate