Difference between revisions of "Group addUsers"

From Catglobe Wiki
Jump to: navigation, search
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Function_Template|Name=Group_addUsers|ReturnType=Empty |Parameters= |Name=Group resource id|ConstantType=Number|IsInteger=1|IsPositive=1, |Name=List of user resource id|ConstantType=Array }}
+
{{HelpFiles}}
 +
 
 +
==== Group_addUsers ====
 +
 
 +
Add users to a group
 +
 
 +
'''Syntax'''
 +
 
 +
Group_addUsers(''groupResourceId'', ''usersResourceId'')
 +
 
 +
'''Arguments'''
 +
 
 +
*''groupResourecId'': is a ''number ''expression. It is the group's resource id
 +
*''usersResourceId'': is a ''array ''which contains User resource Ids
 +
 
 +
'''Return value'''
 +
 
 +
empty
 +
 
 +
=== Examples ===
 +
 
 +
<source lang="javascript">
 +
number gRsId = 15544389;
 +
array uRsId = {15498958,15507494,15517129};
 +
Group_addUsers(gRsId,uRsId);
 +
</source>
 +
[[Category:Group_Functions]]

Latest revision as of 10:20, 12 January 2017


Group_addUsers

Add users to a group

Syntax

Group_addUsers(groupResourceId, usersResourceId)

Arguments

  • groupResourecId: is a number expression. It is the group's resource id
  • usersResourceId: is a array which contains User resource Ids

Return value

empty

Examples

number gRsId = 15544389;
array uRsId = {15498958,15507494,15517129};
Group_addUsers(gRsId,uRsId);