|
DM API Online help | |
SQAddData FunctionThe SQAddData function adds data value to last row in the API data set. Syntax void SQAddData(
const char* sValue
);
Parameters iColumn[in] Index of the column data is added.sValue[in] The value of the data.
Return Value The Function returns nothing. Remarks SQAddData function adds data to the last row in the data set at a specific column. Example // f is a handle of the text file containing your data// iNoCols contains the number of column in your//GetValue is your parsing function, to retrieve value from text line giving the separatorCString sLine;int iRows =0;while( f.ReadString( sLine ) ){iRows++;// show progressSQAddRow(); // Add a blank rowfor( i=0; i< iNoCols; i++){// Make sure you are reading the right dataTRACE("[%s] ", GetValue( sLine, i, cSeparator ));SQAddData( i, GetValue(sLine,i, cSeparator) );}TRACE("\n finished reading");}f.Close(); |
| Copyright © 1996 - 2007 AZMY Thinkware Inc. All rights reserved. |