In the following, the square brackets are used to access the four Bytes that comprise a 32 Bit value.
What is the terminology that describes the square bracket '@p[n]' notation used?
What I understand, from code samples that I have cut 'n pasted or read in PB's Help:
The [n] value is an offset from an address. The size of the offset is n*(Sizeof(variable type that p points to)).
Is that right?
There are a number of examples that use this notation scattered around in PB's Help topics but I didn't locate an actual description of its use yet.
Maybe it's just too basic
Code:
DIM p AS BYTE Ptr .. a$ = USING$("#_.#_.#_.#", @p, @p[1], @p[2], @p[3]) ..
What I understand, from code samples that I have cut 'n pasted or read in PB's Help:
The [n] value is an offset from an address. The size of the offset is n*(Sizeof(variable type that p points to)).
Is that right?
There are a number of examples that use this notation scattered around in PB's Help topics but I didn't locate an actual description of its use yet.
Maybe it's just too basic

Comment