lang • quote

Quote$

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

Cita un string usando la sintaxis de string en Gambas

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

Examples

PRINT Quote("This is not a \\"quoted\\"\\nmulti-line string.")
"This is not a \\"quoted\\"\\nmulti-line string."

Véase también