Class TFormulaLib (unit FCLib)

Inherits from

TComponent

TFormulaLib - holds user aliases and user funtions

Constructors


constructor Create(AOwner: TComponent);

TFormulaLib methods


Functions

procedure Assign(Source: TPersistent);


destructor Destroy;


function Edit(APage: Integer): Boolean;

edit library contents - show TFormulaLibMan dialog

Shows TFormulaLibMan, allows user edit library contents


function ExpandAliases(const S: String): String;

expand aliases - replace aliases in S by their source

function ValidAliasName(const S: String): Integer;

Checks the validity of alias name given in S

function ValidFunctionName(const S: String): Integer;

check validity

Checks the validity of function or constant name given in S


procedure DefineProperties(Filer: TFiler);


function CanDeleteName(Name: String): Boolean;

Returns TRUE if entry Name don't referenced by other entries

procedure SetAliases(NewValue: TFunctionList);


procedure SetFunctions(NewValue: TFunctionList);


Properties

property Aliases : TFunctionList

list of aliases

property Functions : TFunctionList

list of functions

Events

Variables

FAliases : TFunctionList;


FFunctions : TFunctionList;



Constructors


constructor Create(AOwner: TComponent);

TFormulaLib methods


Functions


procedure Assign(Source: TPersistent);


destructor Destroy;


function Edit(APage: Integer): Boolean;

edit library contents - show TFormulaLibMan dialog

Shows TFormulaLibMan, allows user edit library contents


function ExpandAliases(const S: String): String;

expand aliases - replace aliases in S by their source


function ValidAliasName(const S: String): Integer;

Checks the validity of alias name given in S


function ValidFunctionName(const S: String): Integer;

check validity

Checks the validity of function or constant name given in S


procedure DefineProperties(Filer: TFiler);


function CanDeleteName(Name: String): Boolean;

Returns TRUE if entry Name don't referenced by other entries


procedure SetAliases(NewValue: TFunctionList);


procedure SetFunctions(NewValue: TFunctionList);


Properties


property Aliases : TFunctionList

list of aliases


property Functions : TFunctionList

list of functions


Events


Variables


FAliases : TFunctionList;


FFunctions : TFunctionList;