Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > declareAttribute

 

declareAttribute

Syntax

system.DBAdmin.declareAttribute [#attribute: #attributeName]

Description

Multiuser Server command; declares a new attribute name that can be used by any database object. Attributes may not be set until they have been declared. Attribute names must always be symbols. Group attributes do not need to be declared with declareAttribute.

Example

This statement declares a new attribute called #email:

errCode = gMultiuserInstance.sendNetMessage("system.DBAdmin. declareAttribute", "anySubject", [#attribute: #email])

The server's response looks like this:

[#errorCode: 0, #recipients: ["userName"], #senderID: "system.DBAdmin.declareAttribute", #subject: "anySubject", #content: [#attribute: #email], #timeStamp: 184545570]

See also

sendNetMessage(), setAttribute