Adds rows to all columns in a WddxRecordset instance.
object.addRows(n)
| Parameter | Description |
|---|---|
|
object |
Instance name of the WddxRecordset object |
|
n |
Integer; number of rows to add |
None.
This function adds the specified number of rows to every column of a WDDX record set. Initially, the row/column values are set to NULL.
This example calls the addRows function:
// Create a new record set
rs = new WddxRecordset();
// Add a new column
rs.addColumn("NewColumn");
// Extend the record set by 3 rows
rs.addRows(3);
// Set an element in the first row
// newValue is a previously defined variable
rs.setField(0, "NewColumn", newValue);