SetDefaultFileName Method (AUsers) |
v9 |
Sets the default users file (.usr) file path.
Object.Save()
The Save method syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AUsers |
AUsers object |
|
sDefaultFileName |
BString |
Users file (.usr) file path |
|
sUserName |
BString |
Current default users file administrator user name |
|
sPassword |
BString |
administrator password |
Default users file is the development environment (IDE) users file. The file path can be set by this method or by login into the Users dialog from the IDE and setting the file name. To replace the current default user file, you must provide the administrator credentials (user name and password) of the current default users file. By default the user name is "administrator" and the password is empty string.
Note that the default user file may be different than the current active users file if the Open method was called.
The following example will replace the current default users file:
users.SetDefaulftFilename("c:\\ATEasy1.usr", "administrator", "")