(* Collection of code snippets by Arne Vajhøj *)
(* (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) *)
const
   TRUCK = 1;
   TRAILER = 2;
   TOOL = 3;

const
   PERMOPEN = 1;
   COVERABLE = 2;
   REALROOF = 3;

type
   asset = record
               id : unsigned;
               description : varying[32] of char;
               assettype : integer;
               case integer of
                  TRUCK:
                     (
                        model : varying[16] of char;
                        license : varying[8] of char;
                        towcapacity : integer;
                     );
                  TRAILER:
                     (
                        ownweight : integer;
                        maxcargo : integer;
                        roof : integer;
                     );
                  TOOL:
                     (
                        tooltype : varying[16] of char;
                        name : varying[16] of char;
                        weight : integer;
                     );
            end;

