The Util class / com.Util methods |
Checks that the calling application is the only one to run.
com.Util.UniqueApplicationInstance( path STRING) RETURNING result INTEGER
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, returns FALSE and updates STATUS with an error code.