Adding a category |
Top Previous Next |
At least one category must be created. Categories and variables are both stored in the one list. A category differs from a variable by having a “space” character as the first symbol of the name. All variables located in the list after a category are considered as belonging to that category.
A category can be added to the list in either of two ways:
Pascal:
frxReport1.Variables[' ' + 'My Category 1'] := Null;
C++:
frxReport1->Variables->Variables[" My Category 1"] = NULL;
or
Pascal:
var Category: TfrxVariable;
Category := frxReport1.Variables.Add; Category.Name := ' ' + 'My category 1';
C++:
TfrxVariable * Category;
Category = frxReport1->Variables->Add(); Category->Name = " My category 1";
|