IsObject Function

Tips >>ASP Functions

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

 

 
News / Updates New version of cheque printing software is up. Can configure date in box. http://VirtualSplat.com/cp6.exe
E-mail : sales at virtualsplat dot com
Phone : +91 022 28067978