Setfield; Getrowcount - MACROMEDIA COLDFUSION 5 - CFML Reference

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

Advertisement

WddxRecordset Object
Example
This example calls the getField function (the variable r is a reference to a
WddxRecordset instance):
for (row = 0; row < nRows; ++row)
{
}

getRowCount

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

setField

Description
Sets the element in the specified row/column position.
object.
Syntax
Parameters
Parameter
object
row
o += "<tr>";
for (i = 0; i < colNames.length; ++i)
{
o += "<td>" + r.getField(row, colNames[i]) + "</td>";
}
o += "</tr>";
( )
getRowCount
Description
Instance name of a WddxRecordset object
getRowCount
nRows = r.getRowCount();
for (row = 0; row < nRows; ++row)
( row, col, value )
setField
Description
Instance name of a WddxRecordset object
Integer; row that contains the element to set
function:
693

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 5 - CFML and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 5

Table of Contents