10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ArraysThese attributes are:AllRowsReturns the total number of rows in the array, including rows markeddeleted. A zero value indicates that there are no rows, not even anymarked deleted.FirstRowReturns the number of the first row in the array, where first is defined asthe row with the lowest number. This attribute is useful for determiningwhether any rows in the array have been marked deleted.If this attribute returns zero or a negative number, it indicates that thereare rows marked deleted in the array, because rows with a _RowState ofRS_DELETED are given non-positive numbers, starting with zero.For example, assume that an array has six rows, two of which are markeddeleted. The array's row numbers are -1, 0, 1, 2, 3, and 4. If you use theFirstRow attribute against this array, it returns the value -1.If there are no rows having a row state of RS_DELETED, then FirstRowreturns 1.LastRowReturns the highest non-negative sequence number in the array. (Rowswith positive sequence numbers are rows that are not marked deleted.)For example, the value returned by the LastRow attribute on the previouslymentioned array is 4. If the value returned by LastRow is zero, there areno undeleted rows in the array, although there may be deleted rows.These attributes are most often used to control loops in an application, forexample:on click menu.save_menu =begini = custtable.FirstRow;while i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!