CloseAndFreeTable procedure
Prototype: |
procedure CloseAndFreeTable (var TableName : TFieldMapTableScriptWrapper); |
|
Description: |
Procedure CloseAndFreeTable serves to finish editing of the table content. Use this after Post procedure, which saves changes previously made to active entry. CloseAndFreeTable procedure sends changes from working variable to source data table (e.g. Lookup list variable). |
|
Syntax: |
CloseAndFreeTable(TableName); |
|
Part |
Description |
|
TableName |
Variable declared as instance of TFieldMapTableScriptWrapper class containing the table under edit |
|
Return value: |
none |
|
Example:
// adding of new entries to lookup list attribute (Lookup) in the layer (Example)
var
tab : TFieldTableScriptWrapper;
ID_ : integer
Value_ : string
begin
ID_ := ... ; Value_ := ... ;
tab := Example.GetLookUpTable ('Lookup'); // import of lookup list table to tab variable
with tab do
Append;
tab['ID'] := ID_;
tab['Value'] := Value_;
tab['Active'] := 1 ; // adding and filling of new entry
Post; // posting of changes to tab variable
CloseAndFreeTable(tab); // closing of tab variable and freeing of its connection to source attribute
end.
See also:
OpenTable; LoadSimpleXML; OpenParadoxTable; CreateMemTableFromDefs; CloseAndFreeTable; Constants; AddintegerAttribute; AddFloatAttribute; AddbooleanAttribute; AddStringAttribute; AttributeExists; DefaultValue; DefaultValueEnabled; GetAttributesWithDefaultValue; GetAttributesWithDefaultValue
© 2024 IFER-Monitoring and Mapping Solutions