Examples: SQLLastUser

The following example shows this setting as it may appear in the defaults file:


The following script can be used in a pre script for a login window you create. Defaults_Read() retrieves the value of the SQLLastUser setting, which is then used as the default value of the User_ID field:

local string recentuser.
local boolean l_result.

set l_result to Defaults_Read("SQLLastUser", recentuser).
set User_ID to recentuser.

Documentation Feedback