Field-Map Scripting

4.2.3.47 GetAttributeValue

GetAttributeValue function


Prototype:

function GetAttributeValue(const AttributeName: string; const Where: string): variant;

Description:

The GetAttributeValue function is used to access the value of the specified attribute without having to change the position in the table. If the condition specified by the Where parameter is met in more than one record, the value from the first record found is returned. The search is performed within the currently opened plot. To locate a record where a specific attribute has a specific value and to change the position of the cursor for that record, use the Locate function instead.

Syntax:

variable := Layer.GetAttributeValue(AttributeName,Where);


Part

Description


variable

A variable declared as a variant


Layer

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


AttributeName

A reference to a Field-Map attribute in the specified Field-Map layer


Where

The Where parameter specifies the desired attribute using an SQL query

Return value:

a variant value of a specified field


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