isQuery

Determines whether a value is a query.

isQuery(value) → returns boolean

Argument Reference

value string
Required

Examples
Sample code invoking the isQuery function

names = queryNew( 'name','varchar' );
queryAddRow( names );
querySetCell( names,'name','Seth' );
queryAddRow( names );
querySetCell( names,'name','Jen' );
if( isQuery( names ) ) {
   writeOutput( valueList( names.name ) );
}

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub