TTXCalcLabelContents - Events - Properties
Description
Use TTXCalcLabel to calculate totals/subtotals and print the result.
Contents - TTXCalcLabel - Properties
OnCalculate
OnResetDelphi declaration
property OnCalculate: TTXCalcPrinEvent read FOnCalculate write FOnCalculate;
C++ declaration
__property TTXCalcPrinEvent OnCalculate={ read=FOnCalculate, write=FOnCalculate }
Description
OnCalculate event is triggered every time the calculation process is executed.
Delphi declaration
property OnReset: TTXCalcPrinEvent read FOnReset write FOnReset;
C++ declaration
__property TTXCalcPrinEvent OnReset={ read=FOnReset, write=FOnReset }
Description
OnReset is triggered every time when TTXCalcLabel is cleared.
Contents - TTXCalcLabel - Events
AsDateTime
AsFloatDelphi declaration
property AsDateTime: TDateTime read GetAsDateTime;
C++ declaration
__property System::TDateTime AsDateTime={ read=GetAsDateTime }
Description
Read AsDataTime to get the calculation result as TDateTime.
AsIntegerDelphi declaration
property AsFloat: Double read GetAsFloat;
C++ declaration
__property double AsFloat={ read=GetAsFloat }
Description
Read AsFloat to get the calculation result as a double.
AsStringDelphi declaration
property AsInteger: Integer read GetAsInteger;
C++ declaration
__property int AsInteger={ read=GetAsInteger, nodefault }
Description
Read AsInteger to get the calculation result as an integer.
CalcBandDelphi declaration
property AsString: String read GetAsString;
C++ declaration
__property System::AnsiString AsString={ read=GetAsString, nodefault }
Description
Read AsString to get the calculation result as a string.
CalcIS_NULLDelphi declaration
property CalcBand: TTXRBand read FCalcBand write SetCalcBand;
C++ declaration
__property TTXRBand *CalcBand={ read=FCalcBand, write=SetCalcBand, nodefault }
Description
CalcLabel calculation is triggered every time CalcBand is printed.
CalcOperationDelphi declaration
property CalcIS_NULL: Boolean read FCalcIS_NULL write FCalcIS_NULL;
C++ declaration
__property bool CalcIS_NULL={ read=FCalcIS_NULL, write=FCalcIS_NULL, nodefault }
Description
Set CalcIS_NULL to false to skip the calculation process when the database field is clear.
Type of calculation operation performed by TTXCalcLabel .CalcPrintedOnlyDelphi declaration
TTXCalcOperation=(txSum, txMin, txMax, txAve, txCount);
C++ declaration
enum TTXCalcOperation { txSum, txMin, txMax, txAve, txCount };
Description
Value MeaningtxSum Sum of data.
txMin Minimum value of data.
txMax Maximum value of data.
txAve Average value of data.
txCount Count of data.
CountDelphi declaration
property CalcPrintedOnly: Boolean read FCalcPrintedOnly write FCalcPrintedOnly;
C++ declaration
__property bool CalcPrintedOnly={ read=FCalcPrintedOnly, write=FCalcPrintedOnly, nodefault }
Description
Set CalcPrintedOnly to true when TTXCalcLabel has to be calculated only when its CalcBand was actually printed, set to false when the label has to be reset when CalcBand was printed or when the printing of CalcBand was skipped.
Count of records.FormatStringDelphi declaration
property Count: Integer read FCount;
C++ declaration
__property int Count={ read=FCount, nodefault }
Description
Read Count to find out how many records have been processed by the label.If CalcOperation is txCount, Count returns the same result as AsInteger.
ResetBandDelphi declaration
property FormatString: String read FFormatString write FFormatString;
C++ declaration
__property System::AnsiString FormatString={ read=FFormatString, write=FFormatString, nodefault }
Description
Use FormatString to control the formatting of data printed by the label. See AnsiString help for information on formatting.
ResetPrintedOnlyDelphi declaration
property ResetBand: TTXRBand read FResetBand write SetResetBand;
C++ declaration
__property TTXRBand *ResetBand={ read=FResetBand, write=SetResetBand, nodefault }
Description
CalcLabel cleared every time ResetBand is printed.
Delphi declaration
property ResetPrintedOnly: Boolean read FResetPrintedOnly write FResetPrintedOnly;
C++ declaration
__property bool ResetPrintedOnly={ read=FResetPrintedOnly, write=FResetPrintedOnly, nodefault }
Description
Set ResetPrintedOnly to true when TTXCalcLabel has to be reset only when its ResetBand was actually printed, set to false when the label has to be reset when ResetBand was printed or when the printing of ResetBand was skipped.