DeleteAmpersands function
Removes all Ampersand ('&') characters Str, and return the position for the first occurrence.
Declaration
function DeleteAmpersands(var Str: string): IntegerArguments
Str | String with values converted in the method. |
Function result
Position where the first ampersand character was found.
Description
DeleteAmpersands is an
Integer function used to remove
all occurrences of the Ampersand character in Str. The return value contains
the position in Str where the first occurrence of the of the character was
found.
Double Ampersands (&&) are converted to a single & character in Str.
DeleteAmpersands can be used to remove the prefix used for accelerator keys in button, tool bar, and menu captions.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
