Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > getGroupCount |
![]() ![]() ![]() |
getGroupCount
Syntax
system.movie.getGroupCount ["movieName
"] system.user.getGroupCount ["userName
"]
Description
Multiuser Server command; when movie
is specified, returns the number of groups that exist in the specified movie. If no movie is specified, the result is for the current movie.
When user
is specified, returns the number of groups the given user is a member of. If no user is specified, the number returned is for the current user.
Examples
This statement gets the number of groups in the current movie:
errCode = gMultiuserInstance.sendNetMessage("system.movie.getGroupCount", "anySubject")
The server's response looks like this:
[#errorCode: 0, #recipients: ["userName"], #senderID: "system.movie.getGroupCount", #subject: "anySubject", #content: ["currentMovieName": 2], #timeStamp: 763283481]
This statement gets the number of groups the current user is a member of:
errCode = gMultiuserInstance.sendNetMessage("system.user.getGroupCount", "anySubject")
The server's response looks like this:
[#errorCode: 0, #recipients: ["userName"], #senderID: "system.user.getGroupCount", #subject: "anySubject", #content: ["userName": 2], #timeStamp: 763283987]
This statement gets the number of groups for users Bob and Mary:
errCode = gMultiuserInstance.sendNetMessage("system.user.getGroupCount", "anySubject", ["Bob", "Mary"])
The server's response looks like this:
[#errorCode: 0, #recipients: ["userName"], #senderID: "system.user.getGroupCount", #subject: "anySubject", #content: ["Bob": 3, "Mary": 4], #timeStamp: 763284273]
![]() ![]() ![]() |