Getrowcount; Setfield - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

getRowCount

Description
Indicates the number of rows in a WddxRecordset instance.
Syntax
object.getRowCount( )
Parameters
Parameter
object
Return value
Integer. Returns the number of rows in the WddxRecordset instance.
Usage
Call this function before a looping construct to determine the number of rows in a record set.
Example
This example calls the
function dumpWddxRecordset(r)
{
// Get row count
nRows = r.getRowCount();
...
for (row = 0; row < nRows; ++row)
...

setField

Description
Sets the element in the specified row/column position.
Syntax
object.setField( row, col, value )
Parameters
Parameter
object
row
col
value
Return value
None.
Usage
Call this function to set a value in a WddxRecordset instance.
796
Chapter 6: WDDX JavaScript Objects
Description
Instance name of a WddxRecordset object
function:
getRowCount
Description
Instance name of a WddxRecordset object
Integer; row that contains the element to set
Integer or string; the column containing the element to set
Value to set

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents