🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #117

Re: & in label fields in VB

#117
From: Mike Hart
Date: Sat, 08 Aug 1992 00:31
16 lines
1147 bytes
 aliamus@hpcc01.corp.hp.com (Steve Aliamus) writes:

>    Is there a way to tell a label field to *not* draw an underline when
>    it sees an "&"?  My workaround up to this point is to create text
>    fields that cannot be tabbed to, or to simply change a single "&" to
>    "&&" before assigning the label.caption.  

>    Any ideas would be appreciated.

I think you already found the right idea.  It appears to me that doubling the
ampersand, &&, disables the underline property of a single ampersand in
much the same way that a backslash 'escapes' special characters in other
programming environments.  I have not been able to find it documented but I
would guess that it was designed to work that way.  Anyone know for certain?

Mike Hart
Technical Details
Message-ID: <18580002@hpnmdla.sr.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!hpl-opus!hpnmdla!mhart
References: <70560001@hpcc01.corp.hp.com>

Show Full Headers
Complete Article Headers
From: mhart@hpnmdla.sr.hp.com (Mike Hart)
Date: Sat, 8 Aug 1992 00:31:34 GMT
Subject: Re: & in label fields in VB
Message-ID: <18580002@hpnmdla.sr.hp.com>
Organization: Hewlett-Packard, Santa Rosa, CA
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!hpl-opus!hpnmdla!mhart
Newsgroups: comp.os.ms-windows.programmer.tools
References: <70560001@hpcc01.corp.hp.com>
Lines: 16