beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 239

background image

Appendix B Command Syntax

Scripting Guide

239

WHILE

(ENDWHILE)

Flow

Control

Repeats a sequence of

commands while an
expression evaluates to

TRUE.

WHILE…ENDWHILE

CLASSNAME

Misc.

Returns the class name for a

class number

CLASSNAME(%Class])==>$ClassName

CLASSNUM

Misc.

Returns the class number
for a class name string.

CLASSNUM([$ClassName])==>%Class

ERRORMSG

Misc.

Returns the error message
associated with the error

number.

ERRORMSG(%ErrNum)==>$ErrMsg

ERRORNUM

Misc.

Returns the error number

for the most recent
command.

ERRORNUM()==>%ErrNum

OBJEXEC

Object

Manager

Executes an action on an

object.

OBJEXEC(%ObjID,$Action[,Parms…])==>ReturnValue

OBJGET

Object

Manager

Returns the current value in

an object’s field.

OBJGET(%ObjID,$ObjFieldName)==>$CurrentValue

OBJGETARRAY

Object

Manager

Populates an associative

string array with the
current field values from an

object.

OBJGETARRAY(%ObjID,$AssocArray)==>%Success

OBJID

Object

Manager

Returns the ID (unique only

for the particular script
thread) for a MCC object.

OBJID(%Class,$ObjKeyExpr)==>%ObjectID

OBJIDARRAY

Object
Manager

Returns the number of
children of the selected

object ID.

OBJIDARRAY( %Class, %ObjIDParent, %AssocArray)==>
%Children