IVisuUserManagement4.EditUser (METH)¶
METHOD EditUser : VUM_ReturnValues
It edits the user data. It works with both legacy and runtime-based user management Only users of group ADMIN can edit other user. Following actions (eEditType) are possible: VUM_MODIFY, VUM_REMOVE, VUM_ADD and VUM_INSERT. (VUM_ADD and VUM_INSERT do the same for runtime-based usermanagement.) The changes on the user data are done immediatly. When using this method within a dialog, e.g. similar to the usermanagement dialog ‘Change configuration’ provided by CODESYS, no cancel is possible. If everything is correct the function returns VUM_ReturnValues.ERR_OK. see VUM_ReturnValues (ENUM) where possible error reasons are described.
- InOut:
- Scope - Name - Type - Comment - Return - EditUser- Input - pClient- POINTER TO BYTE - A pointer to the visualization client - POINTER TO VisuElems.VisuStructClientData - pvumUserNew- POINTER TO VUM_User3 - The user data with new data. Needed for VUM_MODIFY, VUM_REMOVE, VUM_ADD and VUM_INSERT. - pvumUserOld- POINTER TO VUM_User3 - The user data with old data, only needed for VUM_MODIFY. - udiIndex- UDINT- Only for legacy Index to use for user list (for VUM_INSERT, VUM_MODIFY and for VUM_REMOVE) - eEditType- Activity to do 
