System_File_Lock_Mode - DataDictionary
Returns the lock mode for a system table
Type: Property
Access: Read-Only
Data Type: Integer
Parameters: None
Parameters
| Parameter | Type | Description |
|---|---|---|
| iItem | Integer | The system table position number (0-based) in the list of system tables |
Syntax
Property Integer System_File_Lock_Mode
| Access Type | Syntax |
|---|---|
| Read Access: | Get System_File_Lock_Mode to IntegerVariable |
Description
System_File_Lock_Mode returns the lock file mode for passed position number from DDO's list of required system tables and externally updated tables. The mode can be one of the following constant values: | Constant | Meaning | |---|---| | DD_Lock_On_All | Lock on all saves and deletes (default) | | DD_Lock_On_New_Save_Delete | Lock on new saves and deletes | | DD_Lock_On_Save | Lock on all saves | | DD_Lock_On_New_Save | Lock only on new saves | | DD_Lock_On_Delete | Lock only on deletes |
This property can be used with System_File_Count and System_File_Number to process the system table list.
Integer iTables i eMode
Handle hoTable
Get System_File_Count to iTables
For i From 0 to (iTables-1)
Get System_File_Number i to hoTable
Get System_File_Lock_Mode to eMode
Showln "Item: " i " Table#: " hoTable " Lock-mode: " eMode
Loop
System tables and their lock modes are configured by using the Add_System_File message. Normally, this is done within the Studio using the Visual DataDictionary Modeler.
See Also