|
|
|
|
|
- '&' character interpreted as shortcut
- Limitations
InterpretAmpersand (Property) In french: InterprèteEtCommercial
The InterpretAmpersand property is used to determine and change how the '&' character is interpreted in: - the caption of a Static control.
- elements of a List Box control.
- elements of a Combo Box control.
- the values of a column in a Table control.
Remark: By default, if a character string contains the '&' character, the letter that follows the '&' character is considered as the shortcut. For more details, see Keyboard shortcut and hotkey. // 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 used>.InterpretAmpersand
<Result>: Boolean - True if the letter following the '&' character is interpreted as a hotkey,
- False if the '&' character is not interpreted.
<Control used>: Control name Name of the control to be used.
Modifying how the '&' character is interpreted Hide the details
<Control used>.InterpretAmpersand = <New Interpretation Mode>
<Control used>: Control name Name of the control to be used. <New Interpretation Mode>: Boolean - True if the letter following the '&' character must be interpreted as a hotkey,
- 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 hotkey).
- "War&&Peace" will be displayed as "War&Peace".
Limitations The InterpretAmpersand property can only be used on: - a Static control.
- a List Box control.
- a Combo Box control.
- a column in Table control.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|