ASP/VBScript IsObject() Returns a Boolean value indicating whether an expression references a valid Automation object.
ShotDev Focus:
- Using Asp and IsObject() function.
Example
asp_isobject.asp
<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim objFileSys
Set objFileSys = CreateObject("Scripting.FileSystemObject")
Response.write objFileSys.GetDrive("C")
Response.write objFileSys.GetDrive("D")
If IsObject(objFileSys) Then
Response.write ("<br>objFileSys is Object.")
End IF
%>
</body>
</html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_isobject.asp
Screenshot
 
			



 Loading ...
 Loading ...