VBScript CreateObject İşlevi
❮ Komple VBScript ReferansıCreateObject işlevi, belirtilen türde bir nesne oluşturur.
Sözdizimi
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 |
Örnek
Örnek
Normal ifade nesnesi oluşturma:
<%
txt="This is a beautiful day"
Set objReg=CreateObject("vbscript.regexp")
objReg.Pattern="i"
response.write(objReg.Replace(txt,"##"))
%>
Yukarıdaki kodun çıktısı şöyle olacaktır:
Th##s is a beautiful day
❮ Komple VBScript Referansı