RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Addr Function

Returns a pointer to a specified object.

Pascal
function Addr(var X): Pointer;
C++
void * Addr( X);

System

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 can't be dereferenced directly without a typecast.

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

 

Ptr 

IDH

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!