TeleFlow BasicScript Pos

TeleFlow BasicScript Pos

From TeleFlow

Revision as of 00:36, 20 May 2008 by Wikilib (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Returns the indexed position of a substring in a string, or –1 if the substring is not part of a string.

Syntax

POS(string,substring)
string: a string value or variable.
substring: the substring to search for in string.


Related Steps

Image:Iv_517.gif BasicScript

Examples

BasicScript code

Result

 

@A = "HELLO WORLD"

@B = POS(@A,"WORLD")

PRINT "@B"

6

 

 

@A = "HELLO WORLD"

@B = POS(@A,"AGAIN")

PRINT "@B"

-1