ASP VBscript

Development/ASP 2017. 2. 11. 13:57

변수 선언


<%
dim name
name="Donald Duck"
response.write("My name is: " & name)
%>


-> My name is: Donald Duck



배열 선언


<%
Dim famname(5),i
famname(0) = "Jan Egil"
famname(1) = "Tove"
famname(2) = "Hege"
famname(3) = "Stale"
famname(4) = "Kai Jim"
famname(5) = "Borge"

For i = 0 to 5
     response.write(famname(i) & "<br>")
Next
%>


-> 

Jan Egil

Tove
Hege
Stale
Kai Jim
Borge


반복문

<%
dim i 
for i=1 to 6
   response.write("<h" & i & ">Heading " & i & "</h" & i & ">")
next
%>


->

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6


'Development > ASP' 카테고리의 다른 글

ASP Cint와 같은 형변환 함수  (0) 2017.03.14
ASP Global.asa 란?  (0) 2017.02.11
ASP include  (0) 2017.02.11
ASP session  (0) 2017.02.11
ASP cookies  (0) 2017.02.11
Posted by kunoo
,