Important: The information in this document is obsolete and should not be used for new development.
LSetCell
You can use theLSetCellprocedure to change the data contained in a cell.
PROCEDURE LSetCell (dataPtr: Ptr; dataLen: Integer; theCell: Cell; lHandle: ListHandle);
dataPtr- A pointer to the new data for a cell.
dataLen- The length in bytes of the data pointed to by the
dataPtrparameter.theCell- The coordinates of the cell to hold the new data.
lHandle- The list containing the cell given in the
theCellparameter.DESCRIPTION
TheLSetCellprocedure sets the data of the cell specified by the parametertheCelltodataLenbytes of data beginning at the location specified bydataPtr. Any previous cell data intheCellis replaced.If the cell coordinates specified by the
theCellparameter are invalid, thenLSetCelldoes nothing.
If the data of a visible cell is changed and the automatic drawing mode is enabled,
- WARNING
- If there is insufficient memory in the heap, the
LSetCellprocedure may fail to set the cell's data.![]()
LSetCellupdates the list.SPECIAL CONSIDERATIONS
You should not call theLSetCellprocedure from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLSetCellprocedure are
Trap macro Selector _Pack0 $0058 SEE ALSO
For an example that sets the data of cells in a list, see Listing 4-4 on page 4-22.