ds_GetDatabaseProperties


ds_GetDatabaseProperties (selector; value) <- errorCode
Parameter Type Description
-> selector Long Integer selector
<- value Long Integer value for this selector
<- errorCode Long Integer Error Code (0 = no error)


Return the value of a database parameter. These informations are the one that the developer can modify in the "Database properties" dialog.

Possible values of the selector are definied in the plugin as constants:

Database Properties Selectors & Values
Constant Value Returned value
kds_ StartupEnvironment 1 1 = Start in Design mode
2 = Start in User mode mode
3 = Start in Custom menus mode
kds_ ProgressIndicator 9 0 = Number
1 = Thermometers
kds_DragDropHighLight 10 0 = No effect
1 = Frame only
2 = Pattern
3 = Both
kds_MandatoryLogFile 5 0 = Use Log File
1 = Dont use Log File
kds_DeletionControl 3 0 = Disable Deletion Control
1 = Enable Deletion Control
kds_AutomaticTransaction 4 0 = Disable automatic transactions
1 = Enable automatic transactions
kds_ArobaseIsChar 11 0 = Don't use @ as a char
1 = Use @ as a char
kds_4DOpenAllowed 2 0 = Disable 4D Open connexions
1 = Enable 4D Open connexions
kds_UserList 6 0 = Dont show user list
1 = Show user list
kds_SortUserList 7 0 = Don't sort user list
1 = Sort user list
kds_FlushData 8 Delay to flush buffers, in ticks
kds_CacheMin 12 Minimum cache
kds_CacheMax 13 Maximum cache
kds_UseNewMemOnMac 14 0 = Disable new memory scheme on Mac
1 = Enable it
kds_WinBlockCount 15 Count of memory blocks (Windows only)
kds_WinOneBlockSize 16 One memory block size (Windows only)

Calling this routine on Mac with selectors kds_WinBlockCount or kds_WinOneBlockSize generates an error.