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 theLGetCellDataLocation
procedure. TheLGetCellDataLocation
procedure is also available as theLFind
procedure.
PROCEDURE LGetCellDataLocation (VAR offset, len: Integer; theCell: Cell; lHandle: ListHandle);
offset
- The
LGetCellDataLocation
procedure returns in this parameter the offset of the cell's data, specified from the beginning of the data handle referenced by thecells
field of the list record.len
- The
LGetCellDataLocation
procedure 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 theLGetCellDataLocation
procedure to read cell data. Thecells
field of the list record contains a handle to a relocatable block used to store all cell data. WhenLGetCellDataLocation
returns, theoffset
parameter contains the offset of the specified cell's data in this relocatable block, and thelen
parameter 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
theCell
are invalid, thenLGetCellDataLocation
sets theoffset
andlen
parameters to -1.
- WARNING
- Your application should not modify the contents of the
cells
field directly. To change a cell's data, use theLSetCell
procedure or theLAddToCell
procedure.SPECIAL CONSIDERATIONS
You should not call theLGetCellDataLocation
procedure from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLGetCellDataLocation
procedure are
Trap macro Selector _Pack0 $0034 SEE ALSO
For an example that uses theLGetCellDataLocation
procedure to get the data of a cell, see Listing 4-13 on page 4-32.