INT %FindStr( TEXT in text, TEXT in subText, BOOL in direction := @TRUE, INT in fromIdx := 1 ) |
| text | Text, which is to be searched. |
| subText | Text to search. |
| direction | @TRUE - searching from the text beginning. @FALSE - searching from the text end. |
| fromIdx | Starting position of substring search. |
%FindStr("text some text", "text") ; returns the value of 1
%FinsStr("text some text", "text", @TRUE) ; returns the value of 1
%findStr("text some text", "text", @FALSE) ; returns the value of 13
%findStr("text some text", "text", @TRUE, 2) ; returns the value of 13 |