[SOLVED] TextGadget - Chr(38) --> &

Just starting out? Need help? Post your questions and find answers here.
BigB0ss
New User
New User
Posts: 9
Joined: Sun Jun 01, 2008 12:28 pm
Location: The Netherlands

[SOLVED] TextGadget - Chr(38) --> &

Post by BigB0ss »

Code: Select all

TextGadget(0,10,10,200,20,"THIS & THAT & NOTHING") ; <-- Gives "THIS  THAT _NOTHING"
Why?
Last edited by BigB0ss on Thu Feb 12, 2009 8:18 pm, edited 1 time in total.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

the & in gadget's texts on Windows-OS is for marking the Letter for the Shortcut...

try && for a single ampersand...
oh... and have a nice day.
BigB0ss
New User
New User
Posts: 9
Joined: Sun Jun 01, 2008 12:28 pm
Location: The Netherlands

Post by BigB0ss »

Thank you very much, I really struggled a long time with this one.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

You could also use :

Code: Select all

TextGadget(0,10,10,200,20,"THIS & THAT & NOTHING", #SS_NOPREFIX)
(windows only).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

gnozal wrote:You could also use :

Code: Select all

TextGadget(0,10,10,200,20,"THIS & THAT & NOTHING", #SS_NOPREFIX)
(windows only).
Maybe even the PureBasic IDE will use this flag also (let's wait for version 6.0), then you wont see "xx" but the correct "x&x" in the file tab for a loaded file "x&x.pb" :lol:
Post Reply