|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home BasePack Stringl Procedures and Functions NumberedPosBw|
|See also: PosLast, NumberedPos|
The function NumberedPosBw returns the position of the Count'th occurrence of the substring SubStr in the string MainStr. The search of the substring is performed backwards, starting at the given start position and scanning the string from higher to lower indices. The parameter StartIx specifies the position of the MainStr where the backward search is to be started. If StartIx is greater than the length of MainStr it is automatically adjusted to the end of the string.
The search is not case sensitive if IgnoreCase is set to a TRUE value. The parameter Count defines the number of required occurrences of the substring. If no substring can be found under the specified conditions, the function returns a zero value.