IsObject Function

Tips >>ASP Functions

WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE


The IsObject function returns a Boolean value that indicates whether the specified expression is an automation object. It returns True if expression is an automation object; otherwise, it returns False. In other words, IsObject returns True if expression is a variable of Object subtype or a user-defined object; otherwise, it returns False. Returns a Boolean value indicating whether an expression references a valid Automation object.This IsObject () function checks whether the supplied expression references a valid object.

The Syntax of the IsObject function is :-

IsObject(expression)

Example#1 :-

Code :-
dim x
set x=me
document.write(IsObject(x))
Output :-

True

Example#2 :-

Code :-
dim x
x="me"
document.write(IsObject(x))
Output :-
False

Example#3 :-

Code :-
<%
Set anyvariable = Server.
CreateObject("Scripting.FileSystemObject") %>
<% =IsObject(anyvariable)
%>
Output :-
True

Example#4 :-

Code :-
<%
=IsObject("This is a string, not an object.")
%>
Output :-
False

 

 
E-mail : sales@virtualsplat.com
Phone : +91-9892413501

Whatsapp Icon +91-9967648641

Whatsapp Icon +91-9967648641