StringLength (StringTokenizer function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision: CharacterMap, RandomNumberGenerator, StringTokenizer methods)
mNo edit summary
Line 1: Line 1:
<span style="font-size:120%; color:black"><b>Length of current tokenizing string</b></span>
<span style="font-size:120%; color:black"><b>Length of current tokenizing string</b></span>
[[Category:StringTokenizer methods|StringLength function]]
[[Category:StringTokenizer methods|StringLength function]]
[[Category:System methods]]
<!--DPL?? Category:StringTokenizer methods|StringLength function: Length of current tokenizing string-->
<!--DPL?? Category:StringTokenizer methods|StringLength function: Length of current tokenizing string-->
<!--DPL?? Category:System methods|StringLength (StringTokenizer function): Length of current tokenizing string-->
<!--DPL?? Category:System methods|StringLength (StringTokenizer function): Length of current tokenizing string-->

Revision as of 20:04, 31 December 2010

Length of current tokenizing string

StringLength is a member of the StringTokenizer class.

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

Syntax

  %num = %tok:StringLength

Syntax terms

%num
A numeric variable to contain the returned length of the tokenizing string.
%tok
A StringTokenizer object variable.

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