Script Steps Reference

Table Of Contents
Accounts script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 204
Example 1
Adds a new user account with data entry only privileges. Requires you to change the password the
next time you log in to the account.
Add Account [Account Name: "User"; Password: "1234"; Privilege Set: "[Data
Entry Only]"; Expire password]
Example 2
Adds a new account with read-only privileges using the name and password in the custom dialog
box.
Show Custom Dialog ["Do you want to add a new account?"; Accounts::Name;
Accounts::Password]
If [Get ( LastMessageChoice ) = 1]
Add Account [Account Name: Accounts::Name; Password:
Accounts::Password; Privilege Set: "[Read-Only Access]"]
End If
Example 3
Adds a new data entry only account unless the current user has read-only privileges. Uses the
current user's name for the new account name.
If [Get ( AccountPrivilegeSetName ) "[Read-Only Access]"]
Add Account [Account Name: Get ( UserName ); Password: "1234";
Privilege Set: "[Data Entry Only]"; Expire password]
Else
Show Custom Dialog ["You do not have enough privileges to add an
account."]
End If