Important: The information in this document is obsolete and should not be used for new development.
LGetCellDataLocation
You can find the memory location of cell data by using theLGetCellDataLocationprocedure. TheLGetCellDataLocationprocedure is also available as theLFindprocedure.
PROCEDURE LGetCellDataLocation (VAR offset, len: Integer; theCell: Cell; lHandle: ListHandle);
offset- The
LGetCellDataLocationprocedure returns in this parameter the offset of the cell's data, specified from the beginning of the data handle referenced by thecellsfield of the list record.len- The
LGetCellDataLocationprocedure returns in this parameter the length of the cell's data in bytes.theCell- The cell whose data's location is sought.
lHandle- The list containing the cell specified by the parameter
theCell.DESCRIPTION
Your application can use theLGetCellDataLocationprocedure to read cell data. Thecellsfield of the list record contains a handle to a relocatable block used to store all cell data. WhenLGetCellDataLocationreturns, theoffsetparameter contains the offset of the specified cell's data in this relocatable block, and thelenparameter specifies the length in bytes of the cell's data. In other words, the first byte of cell data is located atPtr(ORD4(lHandle^^.cells^) + offset), and the last byte of cell data is located atPtr(ORD4(lHandle^^.cells^) + offset + len).If the cell coordinates specified by the parameter
theCellare invalid, thenLGetCellDataLocationsets theoffsetandlenparameters to -1.
- WARNING
- Your application should not modify the contents of the
cellsfield directly. To change a cell's data, use theLSetCellprocedure or theLAddToCellprocedure.![]()
SPECIAL CONSIDERATIONS
You should not call theLGetCellDataLocationprocedure from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLGetCellDataLocationprocedure are
Trap macro Selector _Pack0 $0034 SEE ALSO
For an example that uses theLGetCellDataLocationprocedure to get the data of a cell, see Listing 4-13 on page 4-32.