Field-Map Scripting

4.2.3.63 GetIdAttributeName

GetIDAttributeName function


Prototype:

function GetIDAttributeName(const RelativeLevel: integer): string;

Description:

The GetIDAttributeName returns the name of the ID attribute in a layer relative to the active layer where RelativeLevel=0 is a reference to the active layer, RelativeLevel=+1 is a reference to its parent layer etc.

Syntax:


variable := Layer.GetIDAttributeName(RelativeLevel);



Part

Description


variable

A variable declared as a string


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:

name of the ID attribute with respect to the hierarchy of superior layers



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