Addr
Jump to navigation
Jump to search
Returns the address of a specified object.
- Declaration
- function Addr(X): pointer;
- Target
- Windows, Real, Protected
- Remarks
- X is any variable, or a procedure or function identifier. The result is a pointer that points to X. Like nil, the result of Addr is assignment compatible with all pointer types.
Sample Code:
{Addr.PAS} {Sample code for the Addr function.} var P: Pointer; begin P := Addr(P); { Now points to itself } end.