basic.quotes
String delimiter.
Syntax
[\|'|']string[\|'|']
Description
marks the beginning or ending of a literal string in Pick/BASIC.
Generally, it does not matter which types of quotes are used on literals (strings). Some instructions, such as 'heading' and 'footing', impose certain restrictions on their use.
If a literal string is to contain a single-quote, it must be enclosed within double-quotes (') or backslashes (\).
Example
if answer = 'quit' then stop
In this example, single quotes are used to determine if the contents of
'ANSWER' contains the literal string, 'QUIT'.
heading ''lc'Pick Systems'l''
This example illustrates the use of two types of quotes, which happen to be
enforced by the 'heading' statement. see 'heading'.
execute \list entity heading ''lc'Entity'l''\
Access sentences enforce the rule that the 'heading' string must be
enclosed in double quotes. 'heading' options must be enclosed in
single-quotes ('). The whole string is passed as a literal by enclosing it
in backslashes (\).
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
