Description

Determines whether value is a query.

Returns

True, if_ value_ is a query.

Category

Syntax

IsQuery(value)

Parameters

Parameter

Description

value

Query variable

Example

<cfscript>
    myQuery = queryNew("id,name,amount","Integer,Varchar,Integer", 
                [ 
                        {id=1,name="One",amount=15}, 
                        {id=2,name="Two",amount=18}, 
                        {id=3,name="Three",amount=32} 
                ]); 
    writeOutput("Is myQuery a query object? ")
    writeOutput(IsQuery(myQuery))
</cfscript>

Output

Is myQuery a query object? YES

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy