QueryResult::GetColInfo

 

Description

Gets information of found column object

Syntax

int GetColInfo( vector<string> & vs, QUERYRESULTCOL nType, int nRow = 0 )

Parameters

vs
[output] information of found column object
nType
[input] information type, see QUERYRESULTCOL
enum QUERYRESULTCOL
{
        QUERYRESULTCOL_FIRST                    = 0,
        QUERYRESULTCOL_TYPE                     = QUERYRESULTCOL_FIRST,
        QUERYRESULTCOL_DATANAME,
        QUERYRESULTCOL_SNAMEWITHTYPE,
        QUERYRESULTCOL_UNITS,
        QUERYRESULTCOL_COMMENTS,
        QUERYRESULTCOL_VALUE,
        QUERYRESULTCOL_PARAM,
        QUERYRESULTCOL_UDL,
        QUERYRESULTCOL_STATUS,
        QUERYRESULTCOL_SAMPLING_INTERVAL,
};
nRow
[input] row number of value if nType = QUERYRESULTCOL_VALUE, or parameter index if nType = QUERYRESULTCOL_PARAM, QUERYRESULTCOL_UDL

Return

If successful then 1 else 0

Examples

See examples of Build

Remark

See Also

header to Included

origin.h