web 2.0

ASP/VBScript IsObject()

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

ASP/VBScript & IsObject()

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.