SubStrPos is an Integer function that represents the position of the String data type Substr in the pointer to a character memory buffer specified by MemBuff. If the length of Substr is longer than the value in MemorySize, the return value for the function is 0 (zero).
The return value for SubStrPos is the one-based position of the substring, or 0 when not found.