Function PrevObj returns the object in any list which precedes the specified object. If the end of the list is reached, the function returns NIL.
FUNCTION PrevObj(h : HANDLE): HANDLE;def vs.PrevObj(h):
return HANDLE| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object, group, or symbol definition. |
BEGIN
boo := GetHole(h, cnt, hole);
hole := CopyPoly(hole,FALSE);
ClipSurface(poly, hole);
poly := PrevObj(hole);
DelObj(hole);
END;
fieldName := GetFldName( hRec, j );
SetRField( hNewObj, recName, fieldName, GetRField( handles[cnt], recName, fieldName ) );
END;
END;
hNewObj := PrevObj( hNewObj );
{now delete this}
DelObject( handles[cnt] );
END;
FOR cnt := 1 TO holeCnt DO BEGIN
boo := GetHole(h, cnt, hole);
hole := CopyPoly(hole);
ClipSurface(poly, hole);
poly := PrevObj(hole);
DelObj(hole);
END;import vs
# Function PrevObj returns the object in any list which precedes the
# specified object.
h = vs.FSActLayer() # handle to the first selected object on the active layer
objHandle = vs.PrevObj(h)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))Relative calls:
- NextObj | PrevObj
- FObject | LObject
- FSActLayer | LSActLayer
- FSObject | LActLayer
- NextDObj | PrevDObj
- NextSObj | PrevSObj
Availability: from All Versions