System.Addr
From RAD Studio VCL Reference
Contents |
Delphi Information
From System.pas
function Addr(var X): Pointer;
Unit: System
Type: function
Visibility: public
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 Samples