Getfield - MACROMEDIA COLDFUSION MX 61-CFML Reference

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

Advertisement

// 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);

getField

Description
Returns the element in the specified row/column position.
Syntax
object.getField( row, col )
Parameters
Parameter
object
row
col
Return value
Returns the value in the specified row/column position.
Usage
Call this function to access a value in a WDDX record set.
Example
This example calls the
instance):
for (row = 0; row < nRows; ++row)
{
o += "<tr>";
for (i = 0; i < colNames.length; ++i)
{
o += "<td>" + r.getField(row, colNames[i]) + "</td>";
}
o += "</tr>";
}
Description
Instance name of the WddxRecordset object
Integer; zero-based row number of the value to return
Integer or string; column of the value to be returned.
function (the variable r is a reference to a WddxRecordset
getField
WddxRecordset object
795

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents