Field-Map Scripting

4.2.3.11 State

State property


Prototype:

property State: integer; (READ-ONLY)

Description:

The State property indicates the state of a table. Checking this property is useful for On-Demand scripts where it is necessary to decide whether to call Post, Edit etc.

Syntax:

variable := Layer.State;


Part

Description


variable

A variable declared as an integer


Layer

A reference to the Field-Map layer as defined in Field-Map Project Manager

Return value:

Value

Meaning


-1

The table is closed and its data unavailable.


0

The data can be viewed/read, but not changed.


1

The active record can be modified.


2

The active record is a newly added one and has not been posted yet. This record can be modified and then either posted or discarded. Note: When a table is in this state, an AfterScroll and/or an AfterInsert On-Layer script is executed (if any exists).



See also:

Value; ValueAsString; ValueAsinteger; ValueAsFloat; ValueAsboolean; OldValue; PreviousValue; BOF; EOF; RecordCount; State; SetValues; SetValuesFromXML; CrownProjection; CrownProfile; CrownProfilePoints; StemProfile; OldLayer; SavePosition; RestorePosition; SaveState; RestoreState; SavePositionAndState; RestorePositionAndState; Open; Close; First; Last; Next; Prior; Edit; Post; Append; Delete; Cancel; Refresh; Locate; ClearTable; Filter; Filtered; CheckFilter; SetFilterExt; ClearFilterForChildLayers; DeepFilter; EnableCachedUpdates; ApplyUpdates; GetAttributeValue; GetQueryResult; DeleteFrom; Update; CreateMemTable; SaveToDBF; SaveToExcel; GetMinOfAttributeValues; GetMaxOfAttributeValues; GetMeanOfAttributeValues; GetSumOfAttributeValues; GetRecordCount; GetLookupTable; GetLookupListValue; GetLookupListAttributeValue; GetID; GetIdAttributeName; GetIdSQL; SaveTimeStamp; File2Blob; Blob2Folder; String2Blob; Blob2String; FillAttributeValues; MarkValuesAsConditional;GetListOfChildLayers; GetPercentageOfFilledAttributes4Record; GetPercentageOfFilledAttributes4Layer; RoundAttributeValues