Show: Delphi C++
Display Preferences

System.Addr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Addr(var X): Pointer;

Properties

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

Description

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

Personal tools
In Other Languages
Previous Versions
Assistance