RemoveQuotes (StringTokenizer property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (fix "using boolean enumerations" link)
 
m (fix "using boolean enumerations" link)
Line 3: Line 3:
This readWrite property returns or sets the Boolean value that indicates
This readWrite property returns or sets the Boolean value that indicates
whether to remove the quote characters from the returned values of quoted tokens.
whether to remove the quote characters from the returned values of quoted tokens.
The default value for a new tokenizer is <tt>True</tt>.
The default value for a new tokenizer is <code>True</code>.


==Syntax==
==Syntax==

Revision as of 20:59, 5 July 2012

Whether to remove quote characters around returned values of quoted tokens (StringTokenizer class)


This readWrite property returns or sets the Boolean value that indicates whether to remove the quote characters from the returned values of quoted tokens. The default value for a new tokenizer is True.

Syntax

%currentBoolean = stringTokenizer:RemoveQuotes stringTokenizer:RemoveQuotes = newBoolean

Syntax terms

%currentBoolean A Boolean enumeration object to contain the returned value of RemoveQuotes. For more information about Boolean enumerations, see "Using Boolean Enumerations".
stringTokenizer A StringTokenizer object expression.
newBoolean The Boolean value to assign to stringTokenizer's RemoveQuotes property.

Usage notes

  • The Quotes property returns or resets the values of the current quotation characters. The Quotes characters are initially settable in the New call that creates the tokenizer instance.

Examples

In the following request fragment, the first PeekToken call returns quotes example, removing the double quotation marks from the tokenizer string because that is the default behavior. Then, after RemoveQuotes is reset to False, the next peekToken call displays the returned token value with its quotation marks ("quotes example"):

... %tok = new(Quotes='"') %tok:string = '"quotes example"' Print %tok:peekToken %tok:removeQuotes = False Print %tok:peekToken ...

See also