3.5.7.17 GetToken

Description

Returns the nth token where a token is separated by the delimiter specified by chDelimiter.

Syntax

 string GetToken( string str$, int n, char chDelimiter )$

Parameters

str

is the string to get token from.

n

the nth token

chDelimiter

is the delimiter to separate the tokens

Return

Return the extracted string token.

Example

strOut$=GetToken("sss|abc|def|abc|xyz|abc", 3,"|")$