Field-Map Scripting

4.2.3.62 GetID

GetID function


Prototype:

function GetID(const RelativeLevel: integer): integer;

Description:

The GetID function returns the value of the layer ID where RelativeLevel=0 is a reference to the active layer, RelativeLevel=+1 is a reference to its parent layer etc.

Syntax:


variable := Layer.GetID(RelativeLevel);



Part

Description


variable

A variable declared as an integer


Layer

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


RelativeLevel

An integer specifying the direction and number of steps in the layer hierarchy. Positive numbers represent moves towards the root layer, negative ones point deeper in the layer hierarchy.

Return value:

ID of the target layer as an integer



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