String (StringTokenizer property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 10: Line 10:
<td>A string variable to contain the returned or set value of the string to be tokenized. The default value is a null string. </td></tr>
<td>A string variable to contain the returned or set value of the string to be tokenized. The default value is a null string. </td></tr>
<tr><th>%tok</th>
<tr><th>%tok</th>
<td>A StringTokenizer object variable.</td></tr>
<td>A <var>String</var>Tokenizer object variable.</td></tr>
</table>
</table>
==Usage notes==
==<var>U</var>sage notes==
<ul>
<ul>
<li>When the String method assigns a string, it
<li>When the <var>String</var> method assigns a string, it
resets to <tt>0</tt> the [[NextPosition (StringTokenizer property)|NextPosition]] value,
resets to <tt>0</tt> the [[NextPosition (StringTokenizer property)|NextPosition]] value,
and it invalidates the value of [[CurrentToken (StringTokenizer function)|CurrentToken]]
and it invalidates the value of [[CurrentToken (StringTokenizer function)|CurrentToken]]
Line 22: Line 22:


The following statement sets the value of the input string
The following statement sets the value of the input string
of the %toc StringTokenizer object:
of the %toc <var>String</var>Tokenizer object:
<pre>
<pre>
     %toc:string = 'A String example!'
     %toc:string = 'A <var>String</var> example!'
</pre>
</pre>
==See also==
==See also==
{{Template:StringTokenizer:String footer}}
{{Template:StringTokenizer:String footer}}

Revision as of 21:47, 6 February 2011

The string to be tokenized (StringTokenizer class)


This readWrite property returns or sets the string to be tokenized.

Syntax

%currentString = stringTokenizer:String stringTokenizer:String = newString

Syntax terms

%string A string variable to contain the returned or set value of the string to be tokenized. The default value is a null string.
%tok A StringTokenizer object variable.

Usage notes

Examples

The following statement sets the value of the input string of the %toc StringTokenizer object:

    %toc:string = 'A <var>String</var> example!'

See also