Update cookies preferences
Promotic

GetPtr - method of the PmBuffer object

Description:
Mock reading (skipping) of pointer to another data block.
Syntax:
Empty GetPtr(Long nOffset)
Parameters:
nOffset(Long) Specifies the position of read value in the data block.
The read value must be inside the data block. The item is read either whole or not read at all.
>= 0 - Index (in bytes, zero-based index) in the data block.
-4 - The internal automatic position is used (see the AutoOffset property). It points behind the last read or written value.
This operation shifts the internal automatic position behind the read/written value.
If the items are read/written one by one then it is not necessary to define the position manually, but it is better to use this automated positioning.
Note:
This method is not functional in Web panels.
Caution! The pointer size is 4 bytes in 32-bit and 8 bytes in 64-bit. The method allows skipping the saved pointer (4 or 8 bytes) without real reading and go to the next item. Manual reading position skipping must be different in 32-bits compared to 64-bits.
See also:
- PmBuffer.SetPtr (method)
Example:
JavaScriptSelect and copy to clipboard

oBuf.GetPtr(nOffset);

History:
Pm9.00.07: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.