(* Collection of code snippets by Arne Vajhøj *)
(* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) *)
program Strings;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  s1 : string;
  s2 : AnsiString;
  s3 : ShortString;
  s4 : WideString;
  s5 : System.String;
  v1 : integer;
  v2 : smallint;
  v3 : longint;

begin
  s1 := 'bla bla';
  writeln(s1.GetType().FullName);
  s2 := 'bla bla';
  writeln(typeof(s2).FullName);
  s3 := 'bla bla';
  writeln(typeof(s3).FullName);
  s4 := 'bla bla';
  writeln(s4.GetType().FullName);
  s5 := 'bla bla';
  writeln(s5.GetType().FullName);
  v1 := 123;
  writeln(v1.GetType().FullName);
  v2 := 123;
  writeln(v2.GetType().FullName);
  v3 := 123;
  writeln(v3.GetType().FullName);
end.
