PRB: "&" in Controls Does Not Work as ExpectedLast reviewed: June 27, 1995Article ID: Q103682 |
The information in this article applies to:
SYMPTOMSThe ampersand (&) character will not display in some controls and instead will show the next character as being underlined. For example, the following procedure works differently in FoxPro for Windows and FoxPro for MS-DOS:
The same result occurs in FoxPro versions 2.5 and 2.5a for Windows. This behavior does not affect any version of FoxPro for MS-DOS.
CAUSEThis behavior occurs because of a limitation of the Windows environment. Similar behavior will be exhibited in other Windows-based applications such as Visual Basic. This behavior is by design, and changing this behavior would make FoxPro for Windows behave in a manner inconsistent with other Windows-based applications.
RESOLUTIONTo display an ampersand character in Windows, use a double ampersand (&&). In some cases, you can use the following procedure:
|
Additional reference words: FoxWin 2.50 2.50a listbox
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |