Escape & character in SetGadgetText

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Barbarossa
User
User
Posts: 47
Joined: Fri Oct 12, 2012 8:50 am

Escape & character in SetGadgetText

Post by Barbarossa »

A quick question:

I cannot use the & character in strings that are used by SetGadgetText. The '&' is used as an escape charachter to underline the next letter (such as is used in menu items). I thought there was a way to escape the '&' and get a literal byte but I cannot seem to find it.

Anyone know how to achieve this?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Escape & character in SetGadgetText

Post by ts-soft »

&& :wink:

so simple
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Barbarossa
User
User
Posts: 47
Joined: Fri Oct 12, 2012 8:50 am

Re: Escape & character in SetGadgetText

Post by Barbarossa »

LOL!

Everything is simple but you first need to figure it out. :)

Thank you very much.

I see now that I also posted in the wrong subforum. Sorry about that.

John
Post Reply