From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function Ptr(Address: Integer): Pointer;


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


Converts a specified address to a pointer.

In Object Pascal code, Ptr converts the given Address to a pointer. A call to this function generates no code, but simply treats the 32-bit value given by Address as a pointer. Like nil, the result of Ptr is assignment-compatible with all pointer types.

See Also

Code Examples