Syntax: |
quote_string = STRING(string)
|
The STRING
function is useful in command scripts,
where you want to pass a string to the script as a parameter, without enclosing it in quotes.
For example, @script test
where script.pcm
is as follows:
x = string(?1)//' is a quote string'
display x
would display test is a quote string
The key element here is that the user does not have to supply the quotes around the
parameter test
.
Examples
input | result |
STRING(test case) |
'test case' |
STRING(test) |
'test' |
STRING('test') |
'test' |