Ccfxquery Class; Class Members; Ccfxquery::addrow - MACROMEDIA COLDFUSION MX 61-CFML Reference

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

Advertisement

CCFXQuery class

An abstract class that represents a query used or created by a ColdFusion Extension (CFX).
Queries contain one or more columns of data that extend over a varying number of rows.

Class members

virtual int AddRow()
virtual CCFXStringSet* GetColumns
virtual LPCSTR GetData( int iRow, int
iColumn )
virtual LPCSTR GetName()
virtual int GetRowCount()
virtual void SetData( int iRow, int iColumn,
LPCSTR lpszData )
virtual void SetQueryString( LPCSTR
lpszQuery )
virtual void SetTotalTime( DWORD
dwMilliseconds )

CCFXQuery::AddRow

Syntax
int CCFXQuery::AddRow(void)
Description
Add a row to the query. Call this function to append a row to a query.
Returns
Returns the index of the row that was appended to a query.
Example
The following example shows the addition of two rows to a three-column ('City', 'State', and
'Zip') query:
// First row
int iRow ;
iRow = pQuery->AddRow() ;
pQuery->SetData( iRow, iCity, "Minneapolis" ) ;
pQuery->SetData( iRow, iState, "MN" ) ;
pQuery->SetData( iRow, iZip, "55345" ) ;
// Second row
iRow = pQuery->AddRow() ;
pQuery->SetData( iRow, iCity, "St. Paul" ) ;
pQuery->SetData( iRow, iState, "MN" ) ;
pQuery->SetData( iRow, iZip, "55105" ) ;
adds a row to a query.
CCFXQuery::AddRow
CCFXQuery::GetColumns
query's column names.
retrieves a data element
CCFXQuery::GetData
from a row and column of a query.
retrieves the name of a
CCFXQuery::GetName
query.
CCFXQuery::GetRowCount
rows in a query.
sets a data element within a
CCFXQuery::SetData
row and column of a query.
This function is deprecated. It might not work,
and might cause an error, in later releases.
This function is deprecated. It might not work,
and might cause an error, in later releases.
retrieves a list of a
retrieves the number of
CCFXQuery class
753

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents