Previous Topic

Next Topic

Common MaxBasic Object Properties

Properties for all MaxBasic Objects are listed in Automated Data Objects, Automated Table Objects and Automated Miscellaneous.

Some properties common to several objects are described below. These can be manipulated using scripting.

CanDelete

CanDelete returns a calculated check of whether an object can be deleted based on information available in the data object. This gives an indication of whether it is possible to attempt to delete the object. This is not a guarantee that an object can be deleted.

When deleting an object, it is recommended you wrap the statement in a Try...Catch statement. When an object is deleted, more detailed checks, such as whether a Product object is a component of another Product Object, will be performed. A Try... Catch will catch this possibility.

InactiveAllowed

InactiveAllowed returns a calculated check of whether an object can be set to inactive based on information available in the data object. This gives an indication of whether it is possible to attempt to set the object to Inactive. This is not a guarantee that an object can be set to Inactive.

When setting an object to Inactive, it is recommended you wrap the statement in a Try...Catch statement. When an object is set to Inactive, more detailed checks, such as whether a Product object is a component of another Product Object, will be performed. A Try... Catch will catch this possibility.

See Also

MaxBasic Object Properties

Book Contents

Book Index