Delphi Basics
PString
Type
Pointer to a String value System unit
  type PString = ^String;
Description
The PString type is a pointer to an String value.
 
Since String is itself a pointer, PString is not of much use.
Related commands
AnsiString A data type that holds a string of AnsiChars
PAnsiString Pointer to an AnsiString value
PWideString Pointer to a WideString value
String A data type that holds a string of characters
WideString A data type that holds a string of WideChars
 
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