A LIFO (Stack) Data Table works according to the principle of Last In, First Out.
A LIFO Struct contains the following elements; all are Read Only.
Number of Rows |
This is defined in the Data Table Properties |
|
Number of Occupied Rows |
This is the number of rows containing data. |
|
Status |
Check this after running a function to check status 0=No errors -1= Data Table is full -2= Data Table is empty |
|
Is Full |
0= Not Full 1= Full Note that when the table is full, you cannot write data to the table |
|
Is Empty |
0= Table contains Data 1= Table is Empty |
PUSH LIFO
PUSHes’ (writes) Struct data into the top row of a Data Table. The rows shift down.
POP LIFO
‘POPs’ (deletes) the values from the top row of a Data Table. The rows shift up. The last row in the Data Table is left empty.
TOP LIFO
Copies the data in the top row of a Data Table and writes it to a Struct.
Clear LIFO
Removes all of the data from the table.