ObjSetΒΆ

ObjSet is used to set object variables or to execute an object action.

bool = ObjSet(handle, index)
bool = ObjSet(handle, index, dat1, ...)

Return Value

bool is TRUE (1) if the function was successful and FALSE(0) if an error occurred.

Parameters

handle

Is a handle of a line, text, rectangle, ellipse, dataset, layer (diagram) or other object.

index

index Identifies the object function.

dat1

dat1 Is the first of 0 or more parameters.

Example

def LayerAutoScale(hlayer, ssAxis, nTicks)
{
    if (nargsin() == 1) {
        return ObjSet(hlayer, 22);
    } else {
        return ObjSet(hlayer, 22, ssAxis, nTicks);
    }
}

id-698340