Object methods syntax

From m204wiki
Jump to navigation Jump to search

The syntax for each of the Object class methods is shown below.

Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of Object methods.

object:Audit[( [Name= string], [Indent= number], [MaxDepth= number], - [Truncate= number], [Prefix= string])]

%string = object:ClassDescription

%string = object:ClassName

%(Object):DiscardGlobal( name)

%(Object):DiscardGlobals( matchString)

%(Object):DiscardSession( name)

%(Object):DiscardSessions( matchString)

%(Object):GarbageCollect

%(Object):GetGlobal( name, target)

%(Object):GetSession( name, target)

%persObjList = %(Object):GlobalList[( [matchString])]

%object = [%(Object):]New

%(Object):NullifyGlobal( name)

%(Object):NullifyGlobals( matchString)

%(Object):NullifySession( name)

%(Object):NullifySessions( matchString)

%number = object:ObjectId

object:Print[( [Name= string], [Indent= number], [MaxDepth= number], - [Truncate= number], [Prefix= string])]

%persObjList = %(Object):SessionList[( [string])]

%(Object):SetGlobal( name, source)

%(Object):SetSession( name, source)

object:Trace[( [Name= string], [Indent= number], [MaxDepth= number], - [Truncate= number], [Prefix= string])]