Class TFunctionList (unit FCLib) |
Inherits from
TPersistent
TFunctionList - list to hold aliases and user functions
constructor Create(AParent: TFormulaLib);
- TFunctionList methods
function Add(AName, ASource: String): Integer;
add entry with name AName and source ASource to the list
procedure Delete(Index: Integer);
delete entry Index
destructor Destroy;
function IndexOf(AName: String): Integer;
returns number of entry with name AName
procedure Assign(Source: TPersistent);
function GetArgCount(Index: Integer): Integer;
function GetCount: Integer;
function GetNames(Index: Integer): String;
function GetSources(Index: Integer): String;
function IsUnusedIdent(const S: String): Boolean;
Checks if Identifier given in S is unused
procedure ReadData(Reader: TReader);
procedure SetNames(Index: Integer; NewValue: String);
procedure SetSources(Index: Integer; NewValue: String);
procedure WriteData(Writer: TWriter);
property ArgCount : Integer
number of arguments
property Count : Integer
number of elements in the list
property Names : String
names of entries
property Sources : String
sources of entries
FList : TStrings;
FParent : TFormulaLib;
constructor Create(AParent: TFormulaLib);
TFunctionList methods
function Add(AName, ASource: String): Integer;
add entry with name AName and source ASource to the list
procedure Delete(Index: Integer);
delete entry Index
destructor Destroy;
function IndexOf(AName: String): Integer;
returns number of entry with name AName
procedure Assign(Source: TPersistent);
function GetArgCount(Index: Integer): Integer;
function GetCount: Integer;
function GetNames(Index: Integer): String;
function GetSources(Index: Integer): String;
function IsUnusedIdent(const S: String): Boolean;
Checks if Identifier given in S is unused
procedure ReadData(Reader: TReader);
procedure SetNames(Index: Integer; NewValue: String);
procedure SetSources(Index: Integer; NewValue: String);
procedure WriteData(Writer: TWriter);
property ArgCount : Integer
number of arguments
property Count : Integer
number of elements in the list
property Names : String
names of entries
property Sources : String
sources of entries
FList : TStrings;
FParent : TFormulaLib;