Difference between revisions of "RPC HELP TVistaLogin OnFailedLogin"

From VistApedia
Jump to: navigation, search
(Created page with "<h2>OnFailedLogin Property</h2> Example <h3>Applies to</h3> TVistaLogin class <h3>Declaration</h3> ...")
(No difference)

Revision as of 02:53, 4 July 2015

OnFailedLogin Property

Example

Applies to

TVistaLogin class

Declaration

   property OnFailedLogin: TOnLoginFailure;


Description

The OnFailedLogin property is available at run-time only. It holds a procedure to be invoked on a failed Silent Login that permits an application to handle errors as desired, where TOnLoginFailure is defined as:

   TOnLoginFailure = procedure (VistaLogin: TVistaLogin) of object;


For example, an application could define:

   Procedure HandleLoginError(Sender: TObject);

and then set:

   OnFailedLogin := HandleLoginError;