QB64.org Forum

QB64 Team Software => InForm Discussion => Topic started by: TopDeadCenter on January 22, 2019, 05:25:04 pm

Title: Ampersand in caption
Post by: TopDeadCenter on January 22, 2019, 05:25:04 pm
Greetings all, I'm new to InForm.  I'm trying to use something like "C&E" in a label caption and the ampersand is not appearing, instead is comes across as a tiny underscore between the C and E.  How can I make this work?  Thanks.
Title: Re: Ampersand in caption
Post by: FellippeHeitor on January 22, 2019, 07:08:09 pm
Hello and welcome to the forum.

Thanks for your interest in InForm and QB64.

To force an ampersand to show, you can manually edit the frm file and change the line from:

SetCaption __UI_NewID, "C&E"

to

Caption(__UI_NewID) = "C&E"
Title: Re: Ampersand in caption
Post by: TopDeadCenter on January 22, 2019, 09:13:29 pm
That did it.  Thank you.