QueryColumnCount
This function returns the number of columns in a query
Method Signature
QueryColumnCount(query=[query])
Arguments
Argument
Type
Required
Description
Default
query
query
true
The query to get the column count from
Examples
Output number of query columns
myQuery = queryNew( "ID,name,age" );
writeOutput( queryColumnCount( myQuery ) );
Result: 3
Additional Examples
qry = queryNew( "aaa,bbb,ccc,ddd,eee" );
QueryAddRow( qry );
QuerySetCell( qry, "aaa", "sss" );
QueryAddRow( qry, 3 );
QuerySetCell( qry, "aaa", (1) );
QueryAddRow( qry, 1 );
writeDump( queryColumnCount( qry ) );
Related
Last updated
Was this helpful?