Field-Map Scripting

4.2.3.41 CheckFilter

CheckFilter function


Prototype:

function CheckFilter(const Filter: string; out ErrorMessage: string): boolean;

Description:

The CheckFilter function checks whether the query passed as a Filter parameter is a valid SQL query or not

Syntax:

variable := Layer.CheckFilter(Filter, ErrorMessage);


Part

Description


variable

A variable declared as a boolean


Layer

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


Filter

An SQL query as a string


ErrorMessage

The ErrorMessage parameter must be a string variable

Return value:

true if the Filter query is valid, otherwise false



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