Important: The information in this document is obsolete and should not be used for new development.
LAddRow
You can use theLAddRowfunction to add one or more rows to a list.
FUNCTION LAddRow (count: Integer; rowNum: Integer; lHandle: ListHandle): Integer;
count- The number of rows to add.
rowNum- The row number of the first row to add.
lHandle- The list to add the rows to.
DESCRIPTION
TheLAddRowfunction inserts into the given list the number of rows specified by thecountparameter, starting at the row specified by therowNumparameter. TheLAddRowfunction returns as its function result the row number of the first row added, which is equal to the value specified by therowNumparameter if that value is a valid row number.If the row number specified by
rowNumis not already in the list, then new last rows are added. The value returned by theLAddRowfunction thus has significance only in this case.
Rows whose row numbers are initially greater than
- WARNING
- If there is insufficient memory in the heap to add the new rows, the
LAddRowfunction may fail to add the new rows although it returns a positive function result. Be sure there is enough memory in the heap to allocate the new rows before callingLAddRow.![]()
rowNumhave their row numbers increased bycount.If the automatic drawing mode is enabled and the rows added by
LAddRoware visible, then the list (including its scroll bars) is updated. New cells created by a call toLAddRoware initially empty.You may add rows to a list that does not yet have columns. The
dataBoundsfield of the list record reflects that the list has rows, but you can only access cells when both rows and columns have been added.SPECIAL CONSIDERATIONS
You should not call theLAddRowfunction from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLAddRowfunction are
Trap macro Selector _Pack0 $0008 SEE ALSO
For an example that adds rows to a list, see Listing 4-4 on page 4-22.