[Gambas-user] Re: Escapes

Ken Schrock kschrock at ...149...
Thu Dec 25 17:41:42 CET 2003


The bracket ( and the other letters are no problem
It is only the printer escape (dec 27, hex 1b) that is a problem
There is no C escape for it like \n or \r but at least in C
You can use /xhh or /ooo as escapes

And yes, are constants really constant in Gambas
And of how much use are constants here anyway

On Thursday 25 December 2003 2:28 am, Luke Cliff wrote:
> I not sure of this, but perhaps the constant
> is no longer constant... when asking for a conversion escape, gambas
> seems to read the string in C not gambas and therefore no longer
> constant when the escape is implemented, just a guess though
> What's the error?, a way around is to write the escape character with
> chr$() and append it to the rest of the string,but only if gambas IS
> reading C.... but the bracket?  now I really don't have a clue, there is
> no octal number for a bracket...try a space between "b" and "(" ...
>
> Luke
>
> > Message: 1
> > From: Ken Schrock <kschrock at ...149...>
> > To: gambas <gambas-user at lists.sourceforge.net>
> > Date: Wed, 24 Dec 2003 18:03:47 -0800
> > Subject: [Gambas-user] Escapes
> > Reply-To: gambas-user at lists.sourceforge.net
> >
> > Gambas doesn't like this
> >
> > PUBLIC CONST BOLD_ON AS String = "\x1b(s3B"
> >
> > Nor can I get any hex or octal escapes to work
> >
> > ???
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list