Token Function

Description:

This function extracts a token from a string by specifying the character delimiters and the token position.

Format:

result = TOKEN(input_string, delimiters, tokenIndex);

Parameter:

input_string

A string expression from which the token is to be extracted.

delimiters

A string expression specifying the set of delimiters.

tokenIndex

An integer expression defining the token index.

Example:

string szToken;
integer iTokenIndex;

BEGIN

for iTokenIndex = 1 to 10

    szToken = TOKEN("A string\tof ,,tokens\nand some more tokens", " ,\t\n", iTokenIndex);
    Log szToken;

endfor

END

Output:

A
string
of


tokens
and
some
more
tokens





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap