VBScript CreateObject 함수
❮ 완전한 VBScript 참조CreateObject 함수는 지정된 유형의 개체를 만듭니다.
통사론
CreateObject(servername.typename[,location])
Parameter | Description |
---|---|
servername | Required. The name of the application that provides the object |
typename | Required. The type/class of the object |
location | Optional. Where to create the object |
예시
예시
정규식 개체 만들기:
<%
txt="This is a beautiful day"
Set objReg=CreateObject("vbscript.regexp")
objReg.Pattern="i"
response.write(objReg.Replace(txt,"##"))
%>
위 코드의 출력은 다음과 같습니다.
Th##s is a beautiful day
❮ 완전한 VBScript 참조