Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Group addUsers: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
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_addUser(''groupResourceId'', ''usersResourceId'')
 
'''Arguments'''
 
*''groupResourecId'': is a ''number ''expression. It is the group's resource id, which can be found in user resource list
*''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>

Revision as of 04:51, 26 October 2016


Group_addUsers

Add users to a group

Syntax

Group_addUser(groupResourceId, usersResourceId)

Arguments

  • groupResourecId: is a number expression. It is the group's resource id, which can be found in user resource list
  • usersResourceId: is a arraywhich contains User resource Ids

Return value

empty

Examples

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