lang • quote


Quoted string = Quote ( String ) Quoted string = Quote$ ( String )

Quotes a string by using the Gambas string syntax.

It transforms a string into something than can be evaluated to the same string by the Gambas interpreter. In other words:

Print Eval(Quote(AnyString))

is an exact equivalent of

Print AnyString


Print "This is not a \"quoted\"\nmulti-line string."
Print "===="
Print Quote("This is a \"quoted\"\nmulti-line string.")
This is not a "quoted"
multi-line string.
"This is a \"quoted\"\nmulti-line string."

See also