|
DM API Online help | |
SQAddColumn FunctionThe SQAddColumn function adds a column to the API data set. Syntax void SQAddColumn(
);
Parameters sColName[in] Name of the column data to be added.Return Value The Function returns nothing. Remarks You can use the SQAddColumn function to add individual columns to the API data set. Use this function to construct the data set by adding all your columns. After adding columns you need to allocate the number of rows, and then add rows to the data set. 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 i = 0;if( f.ReadString( sLine ) ){// First Line has column namesfor( i=0; i< iNoCols; i++ ){// Make sure you are reading the right column headersTRACE("[%s] ", GetValue( sLine, i, cSeparator ));SQAddColumn( GetValue( sLine,i,cSeparator) );}TRACE("\n finished reading");}f.Close(); |
| Copyright © 1996 - 2007 AZMY Thinkware Inc. All rights reserved. |