Retrieves the memory address of a variable or string constant. Therefore it acts like the “&” operator in C.
Kernel.bdh
Adr( in sString : string ): number;
address of variable
Parameter | Description |
---|---|
sString | Variable or string constant |
dcltrans transaction TAdr var sString : string(10); nAddress : number; begin // nAddress receives the address of the string sString nAddress := Adr(sString); Memset(nAddress, 0, 10); write("address = "); write(nAddress); writeln; end TAdr;
address = 8721488