[AccessD] Can a function return an object?
Stuart McLachlan
stuart at lexacorp.com.pg
Mon Mar 27 01:18:41 CDT 2023
On 26 Mar 2023 at 23:37, Bill Benson wrote:
> In what way does dereferencing cause one to be allowed to change the
> underlying data without changing the reference? Only a new assignment
> statement would cause that.
>
It depends on what language you are working in, but essentially:
The whole point is you can read/write memory locations without changing the reference since
it is a pointer to the data in memory.
DIM pArr AS DWORD
DIM arrBytes(0 to 10) as BYTE
pArr = VARPTR (arrBytes)
1. Use PEEK and POKE
POKE pArr + 3, 65
will set the value of the 4th byte in the array.
2. Dereference using pointer addressing (which may use an asterisk or other operator
epending on language)
*pArr[3] = 65. does the same thing.
More information about the AccessD
mailing list