Unit 'LCLProc' Package
[Overview][Types][Classes][Procedures and functions][Variables][Index] [#lcl]


Removes all Ampersand ('&') characters Str, and return the position for the first occurrence.


Source position: lclproc.pas line 130

function DeleteAmpersands(

  var Str: string





String with values converted in the method.

Function result

Position where the first ampersand character was found.


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.

CT Web help

CodeTyphon Studio