SameText function
Prototype: |
function SameText (const Data1, Data2 : string) : boolean; |
|
Description: |
Checks if two data attributes contain the same text or whether the text in data attribute is the same as predefined text expression. |
|
Syntax: |
variable := SameText (Data1, Data2); |
|
Part |
Description |
|
variable |
Variable declared as a boolean |
|
Data1, Data2 |
String attributes containing text data |
|
Return value: |
True/False |
|
Example:
// verification whether the tree is spruce species
var
x : boolean;
begin
x := SameText('Picea abies', Trees['Species']);
if x = true then
ShowMessage('Norway spruce (Picea abies) tree species')
else
ShowMessage('Other species');
end.
See also:
Format; LZero; Delete; Trim; TrimLeft; TrimRight; SameText; StringReplace; DeFormat1-10; GetFieldCountFromString;GetFieldFromString; IndexOfField; SortNumericSequence
© 2024 IFER-Monitoring and Mapping Solutions