Delphi Basics
PVariant
Type
Pointer to a Variant value System unit
  type PVariant = ^Variant;
Description
The PVariant type is a pointer to a Variant value.
 
It is not entirely clear why this is provided other than for completeness. It is unavisable for a newcomer to Delphi to use this.
Related commands
Variant A variable type that can hold changing data types
 
Example code :
// Full Unit code.
// -----------------------------------------------------------
// You must store this code in a unit called Unit1 with a form
// called Form1 that has an OnCreate event called FormCreate.
 
unit Unit1;
 
interface
 
uses
  // The System unit does not need to be defined
  Forms, Dialogs;
 
type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  end;
 
var
  
Form1: TForm1;
 
implementation
{$R *.dfm} // Include form definitions
 
procedure TForm1.FormCreate(Sender: TObject);


 
end.
Hide full unit code
   
 
© CodeGear 2006 - 2007. All rights reserved.  |  Home Page