StringLength (StringTokenizer function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
(No difference)

Latest revision as of 01:18, 6 July 2012

Length of current tokenizing string (StringTokenizer class)


This method returns the length of the current tokenizing string. This string is the value of the String property.

Syntax

%number = stringTokenizer:StringLength

Syntax terms

%number A numeric variable to contain the returned length of the tokenizing string.
stringTokenizer A StringTokenizer object.

Usage notes

  • The StartOfString function returns the substring of the tokenizer string that precedes the first character of the current token. The RestOfString function returns the substring of the tokenizer string that follows the current position.

Examples

The following statements return the length of the input string (that is, 24) into %len:

%toc:string = 'A StringLength example ' %len = %toc:stringlength

See also