DECLARE SUB DQBpeek (BYVAL DataSeg, BYVAL DataOff, BYVAL Offset AS LONG,
BYVAL Length)
DataSeg - Segment of QB array or variable where data is copied from EMS
DataOff - Offset of QB array or variable where data is copied from EMS
Offset - Absolute offset into allocated EMS memory where to take data
Length - Length in bytes to copy
none
DQBpeek allows to copy data from the user EMS memory area (whose dimension was set by the third parameter of the DQBinit function) into a QB array or variable. The Offset parameter specifies in byte units where to begin copying data; this offset is absolute, and this means you refer to your user EMS memory poll as a flat table. Length bytes are copied from EMS.
This function works best with big amount of data; see also DQBpoke
See DQBpoke example