com.Util.UniqueApplicationInstance

Creates a new random string (deprecated!).

Syntax

com.Util.UniqueApplicationInstance(
   path STRING)
  RETURNING result INTEGER
  1. path is the path to 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 1. Otherwise, returns 0 and updates STATUS with an error code.