Re: & in string
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 07, 2006
- 502 views
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