View comments | RSS feed

IsObject

Description

Determines whether a value is an object.

Return value

True, if the value is an object whose attributes match the specified values; False, otherwise.

The basic ColdFusion types are as follows:

Category

Decision functions

Syntax

IsObject(value [, type [, ... ]])

See also

IsDate, IsQuery

History

New in ColdFusion MX: This function is new.

Parameters

Parameter Description
value
A value
type
String; a type name; data type of the argument.
  • any
  • array
  • binary
  • boolean
  • date
  • guid
  • numeric
  • query
  • string
  • struct
  • uuid
  • variableName
  • a component name
If the value is not a recognized type, ColdFusion processes it as a component name
component-specific parameter
See the Usage section.

Usage

This function can take other, context-specific arguments; for example, classPath, server. For a component, the parameter name is componentName.

This object returns False for query and XML objects.

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6

Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.

Comments


rbils@amkor.com said on Jun 13, 2002 at 10:32 PM :
The docs for IsObject appear to be all wrong. It seems as though the function only takes a single argument, yet the docs state that there are optional args.
hlichtin said on Jan 14, 2003 at 9:04 AM :
The documentation was based on an early spec and is incorrect. The function only takes one parameter.
pmsteil said on Jan 7, 2004 at 1:59 PM :
And what is the default for the isObject() function. What is the expected behavior of isObject( varnam ). When will this return TRUE/FALSE?
spage said on Mar 22, 2004 at 4:08 PM :
The list of "basic ColdFusion types" in here (simple, structure, array, UDF) is very useful (and missing from CFMX 6.1 LiveDocs). But the list does not include objects. Does that mean that an object is one of the other types (e.g. a struct), or is this an oversight?
halL said on Mar 23, 2004 at 7:09 AM :
I believe that the following holds true for ColdFusion MX as well as ColdFusion MX 6.1:
The IsObject function takes only a single, value, parameter. It does not take a type parameter or a third parameter.
It returns true if the parameter is an object of a type that you create using the cfobject tag or the CreateObject function: Java, CFC, COM, Corba, or Web Service.
This includes standard Java language objects, for example, StringBuffer.
halL said on Mar 23, 2004 at 7:22 AM :
For a succinct listing of ColdFusion data types, see http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/elemen15.htm.
This URL is to the version in the ColdFusion MX 6.1 documentation, but applies to MX as well. (Note that the list omits XML objects, for which isObject returns False.)

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt1137.htm