Deleting a user from the tree-like common list.

 

Syntax

function mDeleteUserFromCommonContacts(iUIN: integer): boolean;

 

Parameters and return values

Parameter

Type

Value

iUIN

integer

identifier of a user, which you need to delete.

 

Function result

"True", if a user existed in the common contact list and was successfully deleted. "False", if a user with such UIN does not exist in the common contact list.

 

Example


begin
  if mDeleteUserFromCommonContacts(6) then mLogScript('User deleted from the common contacts list', '')
    else mLogScript('User with UIN 6 isn''t in the common contacts list', '');
end.


Script work result

[19:58:02] (Log "mDeleteUserFromCommonContacts"): User deleted from the common contacts list

 

See also

mLogScript