Adding a category
It is required to create at least one category. Categories and variables are stored in one list. The category differs from a variable by the “space,” which is the first symbol of the name. All variables located in the list after the category, are considered belonging to this category.
Process of adding a category to the list can be performed in 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";