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

 

DM API Online help

 

SQAddColumn Function


The SQAddColumn function adds a column to the API data set.

Syntax

void SQAddColumn(      


   const char* sColName,
);

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 separator

CString sLine;

int i = 0;

if( f.ReadString( sLine ) )

{

// First Line has column names

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

      {

            // Make sure you are reading the right column headers

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