| Contents > CFML Reference > ColdFusion C++ CFX Reference > CCFXQuery class > CCFXQuery::AddRow |
|
|
|
|
||
int CCFXQuery::AddRow(void)
Add a row to the query. Call this function to append a row to a query.
Returns the index of the row that was appended to a query.
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" ) ;
|
|
||
| Contents > CFML Reference > ColdFusion C++ CFX Reference > CCFXQuery class > CCFXQuery::AddRow |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.