RPC HELP TVistaLogin OnFailedLogin: Difference between revisions

From VistApedia
Jump to navigationJump to search
Created page with "<h2>OnFailedLogin Property</h2> Example <h3>Applies to</h3> TVistaLogin class <h3>Declaration</h3> ..."
 
No edit summary
 
Line 1: Line 1:
<h2>OnFailedLogin Property</h2>
<h2>OnFailedLogin Property</h2>
[[RPC_HELP_TVistaLogin_OnFailedLogin_Example|Example]]
[[RPC_Broker_Silent_Login_Example|Example]]


<h3>Applies to</h3>
<h3>Applies to</h3>

Latest revision as of 02:54, 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;