Quote$
Quoted string = Quote ( String )
Quoted string = Quote$ ( String )
用Gambas字符串语法引述一个字符串。
该函数将一个字符串转换为被能Gambas解释器赋值的相同字符串。
也就是说:
PRINT Eval(Quote(AnyString))
精确等价于
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."
参见