Sign in Join
FPDoc Onlineexperiment

TActionLink.Update function

Member of TActionLinkpublicIn unit ActnList

Calls the inherited method when Action has been assigned.

Declaration

pascal
function Update: Boolean; override

Function result

True if the Update method for the Action was executed.

Description

Update is an overridden Boolean function in TActionLink. It ensures that an Action is assigned in the class instance before calling the inherited method. It addresses an issue in TBasicActionLink.Update for RTL versions prior to 3.3.1 where the Action was not checked prior to calling the Update method. For those FPC versions, the inherited method is not called and the return value is always False.

Workaround for RTL TBasicActionLink nil deref issue (fixed in FPC 3.3.1). See issue #41063.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.