配列()
関数:配列を返します
構文:配列(リスト)
引数:文字と数字は大丈夫です
例:<%
dimmyArray()
fori = 1to7
RedimpreServeMyArray(i)
myArray(i)= weekdayname(i)
次
%>
結果:7つの要素MyArrayの配列を作成します
MyArray(「日曜日」、「月曜日」、......「土曜日」)
cint()
関数:式を数値タイプに変換します
構文:cint(式)
引数:有効な文字はできます
例:<%
f = "234"
Response.WriteCint(f)+2
%>
結果:236
文字「234」を番号「234」に変換し、文字列が空の場合は0値を返します
createObject()
関数:登録されているActiveXコンポーネントのインスタンスを作成および返します。
構文:CreateObject(objname)
引数:objnameは、有効な登録済みActivexコンポーネントの名前です。
例:<%
setCon = server.createObject( "adodb.connection")
%>
結果:
cstr()
関数:式を文字列に変換します。
構文:CSTR(式)
引数:式は有効な式です。
例:<%
S = 3+2
Response.Write "Theresultis:"&cstr(s)
%>
結果:番号「5」をキャラクター「5」に変換します。
日付()
関数:現在のシステム日付を返します。
構文:date()
引数:なし。
例:<%= date%>
結果:8/4/99
dateadd()
関数:変更された日付を返します。
構文:dateadd(timeinterval、number、date)
引数:TimeInterVallistTheTimeInterValtoAdd; numbersamountoftimeIntervalStoAdd;そして
date -stactingdate。
例:<%
currentDate =#8/4/99#
newdate = dateadd( "m"、3、currentDate)
respons.writeNewdate