Just starting out? Need help? Post your questions and find answers here.
BigB0ss
New User
Posts: 9 Joined: Sun Jun 01, 2008 12:28 pm
Location: The Netherlands
Post
by BigB0ss » Wed Feb 11, 2009 9:32 pm
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.
Kaeru Gaman
Addict
Posts: 4826 Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany
Post
by Kaeru Gaman » Wed Feb 11, 2009 10:26 pm
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
Posts: 9 Joined: Sun Jun 01, 2008 12:28 pm
Location: The Netherlands
Post
by BigB0ss » Thu Feb 12, 2009 8:18 pm
Thank you very much, I really struggled a long time with this one.
gnozal
PureBasic Expert
Posts: 4229 Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:
Post
by gnozal » Fri Feb 13, 2009 8:45 am
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).
Michael Vogel
Addict
Posts: 2797 Joined: Thu Feb 09, 2006 11:27 pm
Contact:
Post
by Michael Vogel » Fri Feb 13, 2009 9:51 am
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"