[Gambas-user] possible bug, a '\' inside "" treats as escape even a char to print

2015-12-16 Thread PICCORO McKAY Lenz
i put this code:

Print "\"

But the ide thinks the i must put another '\' .. if not added a extra " at
the end!

So its normal and correct i put :

Print "\\" and will print in console the \ normally?


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] possible bug, a '\' inside "" treats as escape even a char to print

2015-12-16 Thread PICCORO McKAY Lenz
thanks, confirmed, now the printer captures the proper char!

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] possible bug, a '\' inside "" treats as escape even a char to print

2015-12-16 Thread ...
Yes, the backslash is the standard escape character, so in order to print one 
you should put 2 together. Heck... actually you should put twice as many you 
need: If you need \\\, you use "\\".

Common ASCII escape sequences: If you want a line feed, the escape sequence is 
\n, a tab is \t, a carriage return is \r, and so on.

Regards,
zxMarce.



On Dec 16, 2015, 12:43, at 12:43, PICCORO McKAY Lenz  
wrote:
>i put this code:
>
>Print "\"
>
>But the ide thinks the i must put another '\' .. if not added a extra "
>at
>the end!
>
>So its normal and correct i put :
>
>Print "\\" and will print in console the \ normally?
>
>
>Lenz McKAY Gerardo (PICCORO)
>http://qgqlochekone.blogspot.com
>--
>___
>Gambas-user mailing list
>Gambas-user@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user