| Function group | Execute on client | Platform(s) |
| String | YES | All |
pos(substring,string)
Returns the 1-based position of substring in string,or zero if substring is not contained in string.
The substring must be contained within string in its entirety for the returned value to be non-zero. Also, the comparison is case sensitive and only the first occurrence of substring is returned (see third example).
CalculatelResultaspos('Mouse','Mickey Mouse')# returns 8
CalculatelResultaspos('mouse','Mickey Mouse')# return 0, note case
CalculatelResultaspos(' ','R S W Smith')# returns 2, that is the position of the first space character
Ifpos('.',lFileName)## if lFileName contains a dotCalculatelFileNameasmid((lFileName,1,pos('.',lFileName)-1)
End If