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.

User getUsersByGroupResourceId: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
Created page with "{{HelpFiles}} ==== User_getUsersByGroupResourceId<br/> ==== Get users by group Resource Id '''Syntax''' User_getUsersByGroupResourceId (number groupRId) '''Arguments''' ..."
 
Nguyenduyan (talk | contribs)
No edit summary
 
Line 17: Line 17:
array of user array
array of user array


'''Example'''  
'''Example''' <source lang="javascript">
<source lang="javascript">
number groupRId=11303273;
number groupRId=11303273;
array users = User_getUsersByGroupResourceId (groupRId);
array users = User_getUsersByGroupResourceId (groupRId);
Line 27: Line 26:
  userRId.Add(users[i][USER_RESOURCE_ID]);
  userRId.Add(users[i][USER_RESOURCE_ID]);
}
}
userRId;
print(userRId);//result {3053527,15133581,15145657,15351925,15357656,15368246,11303274}
</source>
</source>



Latest revision as of 03:05, 28 November 2016


User_getUsersByGroupResourceId

Get users by group Resource Id

Syntax

User_getUsersByGroupResourceId (number groupRId)

Arguments

groupRId: is a numeric (non-decimal) expression. It is the ResourceId of group

Return type

array of user array

Example

number groupRId=11303273;
array users = User_getUsersByGroupResourceId (groupRId);
array userRId;

for (number i=0;i<users.Count; i++)
{
 userRId.Add(users[i][USER_RESOURCE_ID]);
}
print(userRId);//result {3053527,15133581,15145657,15351925,15357656,15368246,11303274}

Availability

Version 6.0