AZMY
Thinkware, Inc
General Order FormSupport CenterSearch this web siteAbout Azmy

 

DM API Online help

 

SQAddData Function


The SQAddData function adds data value to last row in the API data set.

Syntax

void SQAddData(      


    int iColumn,
    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 separator

CString sLine;

int iRows =0;    

while( f.ReadString( sLine ) )

{

      iRows++;

      // show progress

      SQAddRow();  // Add a blank row

      for( i=0; i< iNoCols; i++)

      {

            // Make sure you are reading the right data

            TRACE("[%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.