Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > getAttributeNames

 

getAttributeNames

Syntax

system.group.getAttributeNames [#group: "@groupName"]
system.DBUser.getAttributeNames [#userID: "userName"]
system.DBApplication.getAttributeNames [#application: "appName"]
system.DBPlayer.getAttributeNames [#userID: "userName", #application: "appName"]

Description

Multiuser Server command; gets the list of attribute names that have been set for the given group or database object. If the #userID parameter is supplied, the attribute list is returned for the user's DBUser object. If the #application parameter is supplied, the attribute list is returned for the movie's DBApplication object. If both are supplied, the attribute list is returned for the user's DBPlayer object for the given movie.

Example

This statement gets the list of attributes that have been set for the DBPlayer object of the user Bob in the movie Poker:

errCode = gMultiuserInstance.sendNetMessage("system.DBPlayer.getAttributeNames", "anySubject", [#userID: "Bob", #application: "Poker"])

The server's response looks like this:

[#errorCode: 0, #recipients: ["userName"], #senderID: "system.DBPlayer.getAttributeNames", #subject: "anySubject", #content: ["Bob": [#accountBalance, #cardHand, #lastUpdateTime]], #timeStamp: 7326833]

See also

declareAttribute, setAttribute, sendNetMessage()