有在C++中形如:
struct DictEntry
{
UINT32 tag;
VR vr;
const char* name;
};static const DictEntry DICT_ENTRY0[] =
{
0x00000000,VR_UL,"GroupLength",
0x00000002,VR_UI,"AffectedSOPClassUID",
0x00000003,VR_UI,"RequestedSOPClassUID",
0x00000100,VR_US,"CommandField",
0x00000110,VR_US,"MessageID",
0x00000120,VR_US,"MessageIDBeingRespondedTo",
0x00000600,VR_AE,"MoveDestination",
0x00000700,VR_US,"Priority",
}
的常量数组,在DELPHI里如何定义

解决方案 »

  1.   

    var
    a:array[1..4,1..5,1..6]//定义三维的按你上面的写法,可以定义recorde
      

  2.   

    记录型常量的定义方法:
    type
      RecordA = record
        id: integer;
        name: String[10];
      end;const
      ArrA: array [1..3] of RecordA =(
        (id: 0; name: 'Tom'),
        (id: 1; name: 'Peter'),
        (id: 2; name: 'John'));
      

  3.   

    ArrReNo: array[1..4,0..4] of string = (
        ('1','semplno','tbcemploy','','semplname'),
        ('2','scustno','tbccust','skind=''2''','scustname'),
        ('3','scustno','tbccust','skind=''1''','scustname'),
        ('4','sdeptno','tbcdept','','sdeptname'),
                                          );