ASP: Scripting.Dictionary 컬렉션 사용법

0 투표
Scripting.Dictionary 사용법 좀 알려주세요.

1 답변

0 투표
<%@LANGUAGE="VBSCRIPT"%>
<%Option Explicit%>
<%
 
Dim Dic
Set Dic = Server.CreateObject("Scripting.Dictionary")
  
Response.Write Dic.item("KEY_NAME")

' 컬렉션 존재 유무
If Dic.Exists("nanumtip") Then
  response.wirte "존재"
End If
  
' 컬렉션 추가
Dic.add "nanumtip","나눔팁"

Dic.add "SiteURL","/"
  
' 컬렉션 추출
response.write Dic.item("nanumtip")
  
' 컬렉션 key 변경
Dic.key("nanumtip") = "SiteName"
  
' 컬렉션 값 변경
Dic.item("SiteName") = "나눔팁"
  
' 컬렉션 삭제
Dic.remove("SiteName")
  
' 컬렉션 모두 삭제
Dic.removeAll
  
  
Set Dic = Nothing
%>
구로역 맛집 시흥동 맛집
이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.
add
...