For the complete documentation index, see llms.txt. This page is also available as Markdown.

QueryRecordCount

Returns the absolute value of a number

Method Signature

QueryRecordCount(query=[query])

Arguments

Argument
Type
Required
Description
Default

query

query

true

Examples

Get the number of rows in a query

q = queryNew( "name", "varchar", [ [ "Alice" ], [ "Bob" ], [ "Carol" ] ] );
writeOutput( q.recordCount() );

Result: 3

Using the global function form

q = queryNew( "id,value", "integer,varchar", [ [ 1, "a" ], [ 2, "b" ] ] );
writeOutput( queryRecordCount( q ) );

Result: 2

Last updated

Was this helpful?