ACTIVE SERVER PAGE > 배열 문법
등록일 : 2017-07-03 18:14
조회수 : 95,684
1. 배열 넣기
dim a(10)
for i=1 to 10
a(i)="aaa"&i
next
session("com")=a
<form action="arr2.asp" name="a" method="post">
<input type="submit" name="1" value="연습">
2. 배열 읽어 오기
array2=session("com")
for i=1 to 10
response.write array2(i)&"<br>"
next
위의 예제는 배열을 세션변수에 넣고, 사용하는 예제를 보여주고 있습니다.
배열의 갯수를 알고 싶다????
response.write Ubound(array2)
하믄 된답니다.