LOCKED ATTRIBUTES

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 3


LOCKED ATTRIBUTES ({table; }process; user; machine; processName)

ParameterTypeDescription
tableTableTable to check for record locked, or
Default table, if omitted
processNumberProcess reference number
userStringUser name if multi-user
machineStringMachine name if multi-user
processNameStringProcess name

Description

LOCKED ATTRIBUTES returns information about the user and process that have locked a record. The process number, user name, machine name, and process name are returned in the process, user, machine, and processName variables. You can use this information in a custom dialog box to warn the user when a record is locked.

If the record is not locked, process returns 0 and user, machine, and processName return empty strings. If the record you try to load in read/write has been deleted, process returns -1 and user, machine, and processName return empty strings.

In single-user mode, this command returns values in process and processName only if a record is locked. The values returned in user and machine are empty strings.

In Client/Server mode, the returned process number is the number of the process on the server.

The User parameter returned is the user name from the 4th Dimension password system, even if user name is blank. If there is no password system, "Manager" is returned.

The machine parameter returned is the owner name from the operating system file sharing setup. A name change does not take effect until you restart.

See Also

Locked, Record Locking.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next