com.Util.UniqueApplicationInstance

Checks that the calling application is the only one to run.

Syntax

com.Util.UniqueApplicationInstance(
   file STRING)
  RETURNS INTEGER
  1. file specifies the string for the lock file.

Usage

This method checks that the calling application is the only one to run, by trying to get an exclusive lock on the given file.

If the lock could be set, the method returns TRUE. Otherwise, it returns FALSE and updates STATUS with an error code.