ReportTable::AddRow

 

Description

Add one row to report table

Syntax

TreeNode AddRow( LPCSTR lpcszName, vector & vec, LPCSTR lpcszRowLabel = NULL, vector<string> & vsColLabels = NULL, vector<string> & vsColtagNames = NULL, int nId = 0, LPCSTR lpcszMoreRowLabel = NULL, int index = 0 )

TreeNode AddRow( LPCSTR lpcszName, vector<string> & vec, LPCSTR lpcszRowLabel = NULL, vector<string> & vsColLabels = NULL, vector<string> & vsColtagNames = NULL, int nId = 0, LPCSTR lpcszMoreRowLabel = NULL, int index = 0 )

TreeNode AddRow( LPCSTR lpcszName, LPCSTR lpcszRowLabel, LPCSTR lpcszValue, int nId = 0 )

TreeNode AddRow( LPCSTR lpcszName, LPCSTR lpcszRowLabel, double dValue, int nId = 0 )

Parameters

lpcszName
[input] row tag name
vec
[input] value to fill in the row
lpcszRowLabel
[input] row label
vsColLabels
[input] column labels
vsColtagNames
[input] column tag names
nId
[input] row id
lpcszMoreRowLabel
[input] extra row label
index
[input] if index < 0, extra row label will be the row label, otherwise extra row label will be Subheader#

lpcszName
[input] row tag name
lpcszRowLabel
[input] row label
lpcszValue
[input] value to fill in the row
nId
[input] row id

lpcszName
[input] row tag name
lpcszRowLabel
[input] row label
dValue
[input] value to fill in the row
nId
[input] row id

Return

the added node

Examples

ReportBase's examples

Remark

See Also

header to Included

ReportTree.h