isQuery

Determines whether a value is a query.

isQuery(value) → returns boolean

isQuery Argument Reference

value
Required

Examples sample code invoking the isQuery function


Create and populate a query and output the 'name' column as a list if it is a valid query

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

Fork me on GitHub