[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

IsAccel

Searches for the given virtual key, used as an accelerator.

Declaration

Source position: forms.pp line 1863

function IsAccel(

  VK: Word;

  const Str: string

):Boolean;

Arguments

VK

  

The virtual key (uppercase ASCII) to find.

Str

  

The string to scan.

Function result

True when the key is used as an accelerator.

Description

An accelerator consists of an ampersand followed by the accelerator key. Duplicate ampersands are ignored; they denote a literal (displayed) ampersand character (&).