1. & in string
- Posted by Allen Ashby <allenannashby at msn.com> Oct 07, 2006
- 488 views
- Last edited Oct 08, 2006
how can i put & in a label. everytime i try it comes out _ tnanks allen
2. Re: & in string
- Posted by Jason Gade <jaygade at yahoo.com> Oct 07, 2006
- 492 views
- Last edited Oct 08, 2006
Allen Ashby wrote: > > > how can i put & in a label. > everytime i try it comes out _ > tnanks > allen I'm not very familiar with GUI programming, which I think you are talking about, but have you tried escaping it with a backslash? labelstring = "This\&That" -- "Any programming problem can be solved by adding a level of indirection." --anonymous "Any performance problem can be solved by removing a level of indirection." --M. Haertel "Premature optimization is the root of all evil in programming." --C.A.R. Hoare j.
3. Re: & in string
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 07, 2006
- 501 views
- Last edited Oct 08, 2006
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