Class TfrmConvertChoice

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TfrmConvertChoice = class(TfrmCustomGoPhast)

Description

An instance of TfrmConvertChoice is displayed when the user created a formula in the Data Sets dialog box (TfrmDataSets) that gives results which are of the wrong type for that TDataArray. TfrmConvertChoice gives the user an opportunity to decide how to resolve the problem.

Hierarchy

Overview

Fields

Implicit btnCancel: TBitBtn;
Implicit btnHelp: TBitBtn;
Implicit btnOK: TBitBtn;
Implicit Label1: TLabel;
Implicit Label2: TLabel;
Implicit Label3: TLabel;
Implicit Label4: TLabel;
Implicit lblDataSetDataType: TLabel;
Implicit lblFormulaDataType: TLabel;
Implicit lblVariableName: TLabel;
Implicit pnlButton: TPanel;
Implicit pnlTop: TPanel;
Implicit rgChoice: TRadioGroup;
Private FDataSetDataType: TRbwDataType;
Private FFormulaDataType: TRbwDataType;

Methods

Public procedure GetData(const VariableName: string; const AFormulaDataType, ADataSetDataType: TRbwDataType; const DefaultChoice: integer; const Lock: TDataLock);
Public function AdjustTheFormula(const OldFormula: string): string;

Description

Fields

Implicit btnCancel: TBitBtn;

btnCancel: TBitBtn; Clicking the btnCancel button closes the dialog box and sets the modal result to mrCancel. The code that created the TfrmConvertChoice should respond by doing nothing.

Implicit btnHelp: TBitBtn;

btnHelp: TBitBtn; Clicking the btnHelp button causes help for TfrmConvertChoice to be displayed.

Implicit btnOK: TBitBtn;

btnOK: TBitBtn; Clicking the btnOK button closes the dialog box and sets the modal result to mrOK. The code that created the TfrmConvertChoice should respond by not changing the formula or data type of the data set. See AdjustTheFormula and AdjustFormula.

Implicit Label1: TLabel;

Label1: TLabel; Label1 displays invariant text in the dialog box.

Implicit Label2: TLabel;

Label2: TLabel; Label2 displays invariant text in the dialog box.

Implicit Label3: TLabel;

Label3: TLabel; Label3 displays invariant text in the dialog box.

Implicit Label4: TLabel;

Label4: TLabel; Label4 displays invariant text in the dialog box.

Implicit lblDataSetDataType: TLabel;

lblDataSetDataType: TLabel; lblDataSetDataType displays the type of data contained in the data set.

Implicit lblFormulaDataType: TLabel;

lblFormulaDataType: TLabel; lblFormulaDataType displays the type of data returned by the formula.

Implicit lblVariableName: TLabel;

lblVariableName: TLabel; lblVariableName displays the name of the data set that has an incorrect formula.

Implicit pnlButton: TPanel;

pnlButton: TPanel; pnlButton holds the buttons at the bottom of the dialog box.

Implicit pnlTop: TPanel;

pnlTop: TPanel; pnlTop holds the text at the top of the dialog box

Implicit rgChoice: TRadioGroup;

rgChoice: TRadioGroup; rgChoice displays the possible ways of dealing with the mismatch between the formula and the data set..

Private FDataSetDataType: TRbwDataType;

FDataSetDataType: TRbwDataType; FDataSetDataType is the type of data stored in the data set.

Private FFormulaDataType: TRbwDataType;

FFormulaDataType: TRbwDataType; FFormulaDataType is the type of data returned by the formula.

Methods

Public procedure GetData(const VariableName: string; const AFormulaDataType, ADataSetDataType: TRbwDataType; const DefaultChoice: integer; const Lock: TDataLock);

GetData is called by the code that detects the problem (See TfrmConvertChoice) to transfer information about the problem to the TfrmConvertChoice.

Parameters
VariableName
VariableName is the name of the TDataArray whose formula is incorrect.
AFormulaDataType
AFormulaDataType indicates the type of data returned by the formula for the TDataArray.
ADataSetDataType
ADataSetDataType indicates the type of data stored by the TDataArray.
DefaultChoice
DefaultChoice indicates the choice in rgChoice to be presented to the user as the default response.
Lock
indicates which aspects of the TDataArray are locked and can not be changed. Some possible responses can be disabled based on Lock.
Public function AdjustTheFormula(const OldFormula: string): string;

AdjustTheFormula converts OldFormula to a formula that returns data of the correct type. GetData must be called before calling AdjustTheFormula in order to specify the type of data returned by the formula and the type of data required by the TDataArray. AdjustTheFormula calls AdjustFormula.


Generated by PasDoc 0.12.1 on 2013-05-13 15:41:34