IsFirstInstance
function OgFirst.IsFirstInstance : Boolean;

TurboPack OnGuard FMX

IsFirstInstance

function OgFirst.IsFirstInstance : Boolean;

Navigation:  »No topics above this level«

IsFirstInstance

function OgFirst.IsFirstInstance : Boolean;

Return to chapter overview

 

_bm1 IsFirstInstance determines whether this is the first instance of a program.

This method should be called prior to creating any forms so that the application can be terminated if necessary. IsFirstInstance returns True if this is the first instance of the application.

If IsFirstInstance returns False, you can call ActivateFirstInstance to activate the prior instance of the application.