![]() ![]() ![]() |
void CCFXQuery::SetData(int iRow, int lColumn, LPCSTR lpszData)
Sets a data element within a row and column of the query. Row and column indexes begin with 1. Before calling SetData for a given row, you should be sure to call AddRow and use the return value as the row index for your call to SetData.
Row of data element to set (1-based).
Column of data element to set (1-based).
New value for data element.
The following example demonstrates the addition of 2 rows to a query that has 3 columns ('City', 'State', and 'Zip'):
// First row int iRow ; iRow = pQuery->AddRow() ; pQuery->SetData( iCity, iRow, "Minneapolis" ) ; pQuery->SetData( iState, iRow, "MN" ) ; pQuery->SetData( iZip, iRow, "55345" ) ; // Second row iRow = pQuery->AddRow() ; pQuery->SetData( iCity, iRow, "St. Paul" ) ; pQuery->SetData( iState, iRow, "MN" ) ; pQuery->SetData( iZip, iRow, "55105" ) ;
![]() ![]() ![]() |
AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.