QueryAddRow

Adds a specified number of empty rows to a query. The number returned is the new row count of the query.

Returns: number

Usage

QueryAddRow( query [, numberOrData ] )

Arguments

Argument Description Default
query
(query, required)

Name of an executed query.

numberOrData
(any, optional)

Number of rows to add to the query or a struct/array containing the data to populate the row. Example: queryAddRow(qry,3); queryAddRow(qry,["Susi",20]); queryAddRow(qry,{name:"Susi",age:20});

1

Examples

myQuery    = querynew( "id" );

addedRows  = myQuery.addRow( 3 ); // will return 3
anotherRow = myQuery.addRow();    // will return 4

See also