version 3
LOCKED ATTRIBUTES ({table; }process; user; machine; processName)
Parameter | Type | Description | |
table | Table | Table to check for record locked, or | |
Default table, if omitted | |||
process | Number | Process reference number | |
user | String | User name if multi-user | |
machine | String | Machine name if multi-user | |
processName | String | Process 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