Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > deleteAttribute |  |

deleteAttribute

Syntax

    system.group.deleteAttribute [#group: "@groupName", #attribute: #attributeName]
    system.group.deleteAttribute [#group: ["@groupName1", "@groupName2", "@groupName3"], #attribute: [#attributeName1, #attributeName2]]
    system.DBUser.deleteAttribute [#userID: "userName", #attribute: #attributeName]
    system.DBUser.deleteAttribute [#userID: ["userName1", "userName2"], #attribute: [#attributeName1, #attributeName2, #attributeName3]]
    system.DBPlayer.deleteAttribute [#userID: "userName", #application: "appName", #attribute: #attributeName]
    system.DBApplication.deleteAttribute [#application: "appName", #attribute: #attributeName]

Description

Multiuser Server command; deletes an attribute with the given name from the given group or database object. Either a `#userID` or an `#application` parameter may be supplied. If both are supplied, the attribute is deleted from the DBPlayer object.

Example

This statement deletes the attribute `#accountBalance` from the DBPlayer object for the user Bob in the movie Poker:

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

The server's response looks like this:

    [#errorCode: 0, #recipients: ["userName"], #senderID: "system.DBPlayer.deleteAttribute", #subject: "anySubject", #content: [:], #timeStamp: 7430457]

See also

`sendNetMessage()`