Field-Map Scripting

4.3.2.3 IsTableOpen

IsTableOpen function


Prototype:

function IsTableOpen: boolean;

Description:

This function performs a check whether a table is open (true) or closed (false).

Syntax:

variable := TreeLayer.TreeLayerSpecificTable.IsTableOpen;


Part

Description


variable

A variable declared as a string


TreeLayer

A reference to a Field-Map layer of layer type Trees as defined in Field/Map Project Manager


TreeLayerSpecificTable

A reference to an instance of a TFieldMapTableScriptWrapper class, i.e. either CrownProjection, CrownProfile, CrownProfilePoints or StemProfile.

Return value:

True if the specified table is open, False if it is not


Example:

begin

  if Trees.CrownProfile.IsTableOpen then

    begin

      ShowMsg('The table with crown profiles is open.');

  end;

end.



See also:

FieldExists; RecNo; IsTableOpen; AsXML; SaveToDbfExt; AlterTable; DisplayLabel; BlobAsString