Re: & in string

new topic     » goto parent     » topic index » view thread      » older message » newer message

Allen Ashby wrote:
> 
> 
> how can i put & in a label.
> everytime i try it comes out _
> tnanks
> allen

Ok, I'm assuming you mean ...

When creating a Windows control that has a caption, how can I get '&' to show up
in the caption? Whenever I try, it just underlines the next character instead of
displaying the '&'.

Use '&&' (two ampersands) instead. Windows will replace the two with a one.

Normally, the '&' is used to tell the application which letter is the 'hot key'
for the control so to override this Windows needs to see two adjancent
ampersands.

   
-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu