From RAD Studio API Documentation
Jump to: navigation, search


function Addr(var X): Pointer;


Type Visibility Source Unit Parent
function public System.pas System System


Returns a pointer to a specified object.

The Addr function returns the address of a specified object. X is any variable, procedure, or function identifier. The result is a pointer to X.

The result of Addr is of the predefined type Pointer, which means that it is assignment-compatible with all pointer types but cannot be dereferenced directly without a typecast.

Note: Addr is equivalent to the @ operator except that it is unaffected by the $T compiler directive.

See Also

Code Examples