Einzelnen Beitrag anzeigen

NormanNG

Registriert seit: 1. Feb 2006
294 Beiträge
 
Delphi 2007 Professional
 
#4

AW: typisierte Konstante definieren: const C: array [...] of TGUID = (...);

  Alt 16. Aug 2012, 11:12
Hi,

{3} ist nicht sehr komfortabel, geht aber:

Delphi-Quellcode:
type
  TFormate = array [TFormat] of TGUID;
const
  Konstante: TFormate = ('{3E88C3A1-8791-45C2-961D-41423855E863}', '{ED86F176-8E55-43BC-8BB2-8FAEB9E52D29}'); {3}
var
  Variable: TFormate; { funktioniert }
begin
  Variable[ftEins] := IEins;
  Variable[ftZwei] := IZwei;
end;
Gruß
Norman
  Mit Zitat antworten Zitat