[Gambas-user] Quote() doesn't manage special italian chars - bug?

Benoit Minisini gambas at ...1...
Sat Nov 10 18:10:52 CET 2007


On samedi 10 novembre 2007, Stefano Palmeri wrote:
>
> Sorry, could you redirect me to some page that explains the Quote()
> function and what it's used for? :-)
> Thanks,
>
> Stefano
>

You can use Quote() to store arbitrary strings on one line in a settings file. 
Then you will use UnQuote() to read it later, and get the original string.

As written in the wiki, it quotes a string for the Gambas interpreter, i.e. it 
transforms a string into something than can be evaluated to the same string 
by the Gambas interpreter.

So:

PRINT Eval(Quote(AnyString))

is an exact equivalent of

PRINT AnyString

Regards,

-- 
Benoit Minisini




More information about the User mailing list