UserAdministration

<< Click to Display Table of Contents >>

 

UserAdministration

UserAdministration([PosX], [PosY], [ShowMergeErrorsOnExit], [MergeDetails])

This method opens a dialog box that allows editing a list of Server's users. The available functions are the following:

Display a list of all users

Delete users (the current user cannot be deleted)

Add and edit users

Edit settings of a user

Change a user's password

Change other user's data, such as login and name

 

This method contains the following parameters:

PosX: Optional parameter indicating the position, in pixels, of the dialog box relative to the left margin of the window

PosY: Optional parameter indicating the position, in pixels, of the dialog box relative to the top margin of the window

ShowMergeErrorsOnExit: Optional Boolean parameter indicating whether a window with errors occurred during the execution of this method must be displayed. If this parameter is omitted, no window is displayed at the end of the execution

MergeDetails: Optional output parameter containing a String with errors occurred during the execution of this method

 

If the PosX and PosY parameters are omitted, that dialog box's coordinate is centered on the window. If the values indicated in these parameters place that dialog box outside the visible area, those values are automatically adjusted to ensure that dialog box is visible.

This method returns True if there were no problems during its execution and False otherwise. The next code contains an exemple of using of this method.

Sub CommandButton_Click()
  'Variables receiving the result
  'and execution errors
  Dim method_result, execution_error
  method_result = Application.UserAdministration( , , False, execution_error)
  If Not method_result Then
    MsgBox "Errors during user edition: " & execution_error
  End If
End Sub

 

IMPORTANT

Only an Administrator can have access to this method. A dialog box for user configuration is only accessible to a user enabled as Administrator.

Was this page useful?