hObj = CwFindPreviousObject(hLastObj) hLastObj (handle) Handle to an object hObj (handle) Handle to an object
A program can cycle through all of the objects in the current view by repeatedly calling CwFindPreviousObject with the handle returned in the previous call as the argument. The sequence of objects visited when calling CwFindPreviousObject in this manner is the same as the sequence of objects selected when using the page-up key.
If "hLastObj" is the null handle, the last object in the sequence is returned and if it is the first (foremost) object (i.e. the last in the sequence), a null-handle is returned.
This function behaves identically to CwFindNextObject except that the order in which objects are cycled through is reversed.
/* Do something to all objects in the current view. */ o = CwFindLastObject(CwGetCurrentView()) do while CwIsHandleValid(o) call doSomethingTo o o = CwFindPreviousObject(o) end
Functions by NAME |
Index |
Functions by PURPOSE |