IsFirstInstance
function OgFirst.IsFirstInstance : Boolean;
IsFirstInstance function OgFirst.IsFirstInstance : Boolean; |
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.