Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Methods Available to All Objects

  • Last UpdatedJul 23, 2024
  • 1 minute read

The table following lists the methods available to all objects. The table gives the name of each method and the type of result you get back from it.

The third column of the table describes what the method does.

Name

Result

Purpose

Attribute( 'Name')

ANY

To set or get a member of an object, providing the member name as a STRING.

Attributes()

ARRAY OF STRINGS

To get a list of the names of the members of an object as an array of STRING.

Delete()

NO RESULT

Destroy the object - make it undefined

EQ(any)

BOOLEAN

Type-dependent comparison

LT(any)

BOOLEAN

Type-dependent comparison (converting first to STRING if all else fails)

Max(any)

ANY

Return maximum of object and second object

Min(any)

ANY

Return minimum of object and second object

NEQ(any)

BOOLEAN

TRUE if objects do not have the same value(s)

ObjectType()

STRING

Return the type of the object as a string

Set()

BOOLEAN

TRUE if the object has been given a value(s)

String()

STRING

Convert the object to a STRING

Unset()

BOOLEAN

TRUE if the object does not have a value

Table 2: 2. Methods Available to All Objects

TitleResults for “How to create a CRG?”Also Available in