I do not understand why the DELETE_ARRAY_ELEM won't work....
SEARCH_DRW_VIEWS CurrentDrawing "*" "*" ViewArray
DECLARE_VARIABLE INTEGER DeleteIndex 0
FOR EachView REF ARRAY ViewArray
GET_DRW_VIEW_ORIENTATION EachView ViewOrientation
PRINT "before_EachView = % ViewOrientation = %" EachView ViewOrientation
END_FOR
!@@@ error checking for background and overlay views....
FOR EachView REF ARRAY ViewArray
GET_DRW_VIEW_ORIENTATION EachView ViewOrientation
IF ViewOrientation == "UNKNOWN"
DELETE_ARRAY_ELEM ViewArray DeleteIndex
END_IF
DeleteIndex++
END_FOR
FOR EachView REF ARRAY ViewArray
GET_DRW_VIEW_ORIENTATION EachView ViewOrientation
PRINT "after_EachView = % ViewOrientation = %" EachView ViewOrientation
END_FOR