Results 1 to 4 of 4

Thread: help needed : Typed CONSTANTs

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2
    Do something like this:-

    Code:
    Type
      TMyType = record
        name: string;
        data1: integer;
        data2: string;
      end;
    
    Const
      MY_DATA : array[0..1] of TMyType = (
        (name:'Fred'; data1:10; data2:'Favourite colour'),
        (name:'Borris';  data1:16; data2:'Mother''s maiden name')
      );
    :: AthenaOfDelphi :: My Blog :: My Software ::

  2. #2

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •