PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
  • '&' character interpreted as shortcut
  • Limitations
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
InterpretAmpersand (Property)
In french: InterprèteEtCommercial
..InterpretAmpersand is used to find out and modify the mode for interpreting the '&' character in:
  • the caption of a Static control.
  • the elements of a List Box control.
  • the elements of a Combo Box control.
  • the values of a column in aTable control.
Note: By default, if a character string contains the '&' character, the letter that follows the '&' character is considered as the shortcut. See Hotkey for more details.
Example
// The '&' character is not interpreted as a shortcut
LIST_BookList..InterpretAmpersand = False
// Add a book title
ListAdd(LIST_BookList, "War&Peace")
Syntax

Finding out how the '&' character is interpreted Hide the details

<Result> = <Control name>..InterpretAmpersand
<Result>: Boolean
  • True if the letter following the '&' character is interpreted as shortcut,
  • False if the '&' character is not interpreted.
<Control name>: Character string (with or without quotes)
Name of control to use.

Modifying how the '&' character is interpreted Hide the details

<Control name>..InterpretAmpersand = <New Interpretation Mode>
<Control name>: Character string (with or without quotes)
Name of control to use.
<New Interpretation Mode>: Boolean
  • True if the letter following the '&' character must be interpreted as shortcut,
  • False if the '&' character must not be interpreted.
Remarks

'&' character interpreted as shortcut

If the letter that follows the '&' character is considered as being the shortcut, to display the '&' character in a caption, it must be typed twice. For example:
  • "War&Peace" will be displayed as "WarPeace" (with Alt + P as shortcut).
  • "War&&Peace" will be displayed as "War&Peace".

Limitations

..InterpretAmpersand can only be used on:
  • a Static control.
  • a List Box control.
  • a Combo Box control.
  • a column in Table control.
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment