Objekt TKAPMemTable
Z K.A.P.
Skočit na navigaciSkočit na vyhledávání
Objekt TKAPMemTable
Tato třída slouží pro manipulaci s paměťovými tabulkami. Jedná se jen o dočasné tabulky, které po uvolnění z paměti přestanou existovat. Je možné vytvožit tabulku, definovat pole tabulky či indexy, otevřít tabulku, procházet záznamy tabulky, filtrovat záznamy, načítat či měnit hodnoty z jednotlivých polí záznamu apod.
TKAPMemTable = class(TDataset) constructor Create; function AddIndex(const Name, Fields: string; Options: TIndexOptions):TkbmIndex; function ControlsDisabled: Boolean; function FieldByName(const FieldName: String): TField; function FindField(const FieldName: String): TField; function FindKey(const KeyValues:array of const): Boolean; function FindNearest(const KeyValues:array of const): Boolean; function GetBookmark: TBookmark; function GotoKey: Boolean; function GotoNearest:boolean; function IndexFieldCount:Integer; function IsEmpty: Boolean; function Locate(const KeyFields: string; const KeyValues: Variant; Options: TLocateOptions): Boolean; function Lookup(const KeyFields: string; const KeyValues: Variant; const ResultFields: string): Variant; function LookupByIndex(const IndexName:string; const KeyValues:Variant; const ResultFields:string; RespFilter:boolean):Variant; function MoveBy(Distance: Integer): Integer; function RecordCount: Integer; procedure Append; procedure ApplyRange; procedure Cancel; procedure CancelRange; procedure Close; procedure Commit; procedure CreateTable(Rewrite: Boolean); procedure Delete; procedure DeleteIndex(const Name: string); procedure DeleteTable; procedure DisableControls; procedure Edit; procedure EditKey; procedure EmptyTable; procedure EnableControls; procedure First; procedure FreeBookmark(Bookmark: TBookmark); procedure GetFieldList(List: TList; const FieldNames: String); procedure GetFieldNames(List: TStrings); procedure GotoBookmark(Bookmark: TBookmark); procedure GotoNearest; procedure Insert; procedure Last; procedure LoadFromFile(const FileName: string); procedure LoadFromDataSet(Source:TDataSet; CopyOptions:TkbmMemTableCopyTableOptions); procedure Next; procedure Open; procedure PackTable; procedure Post; procedure Prior; procedure Refresh; procedure Reset; procedure Rollback; procedure SaveToFile(const FileName: string); procedure SetKey; procedure SetRange(const StartValues, EndValues: array of const); procedure StartTransaction; procedure Undo; procedure UpdateIndexes; end;