String (StringTokenizer property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<span style="font-size:120%; color:black"><b>The string to be tokenized</b></span>
{{Template:StringTokenizer:String subtitle}}
[[Category:StringTokenizer methods|String property]]
<!--DPL?? Category:StringTokenizer methods|String property: The string to be tokenized-->
<!--DPL?? Category:System methods|String (StringTokenizer property): The string to be tokenized-->
<p>
String is a member of the [[StringTokenizer class]].
</p>


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


===Syntax===
==Syntax==
  %string = %tok:String
{{Template:StringTokenizer:String syntax}}
 
  %tok:String = %string
===Syntax terms===
===Syntax terms===
<dl>
<dl>
Line 23: Line 15:


</dl>
</dl>
===Usage Notes===
==Usage notes==
<ul>
<ul>
<li>When the String method assigns a string, it
<li>When the String method assigns a string, it
Line 30: Line 22:
and the value of [[CurrentTokenPosition (StringTokenizer property)|CurrentTokenPosition]].
and the value of [[CurrentTokenPosition (StringTokenizer property)|CurrentTokenPosition]].
</ul>
</ul>
===Examples===
==Examples==


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

Revision as of 19:54, 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 String example!'

See also