Navigation:  Appendices > Macro Language > Built-in Functions > All Functions (Alphabetical) >


Previous pageReturn to chapter overviewNext page

int = Pos(sSubString,sString)


This macro function will search for a sub-string in a larger string. If the sub-string is found the function returns the position at which the first occurrence of this sub-string occurs. Otherwise the function returns zero.


Pos('A','Aardvark') = 1

Pos('a','Aardvark') = 2 // case sensitive !

Pos('a','Art') = 0


This function is case-sensitive (ie. 'Hello' is not the same as 'hello').


See also : PosNth.

Topic 105107 updated on 05-Mar-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?pos.htm