Registriert seit: 19. Aug 2004
Ort: Hof/Saale
1.747 Beiträge
Delphi 2007 Professional
|
Re: Array of String als Konstante klappt nicht...
26. Mär 2010, 11:09

Zitat von stho:
Bleibt mir wohl nix anderes übrig als dies Array zu zählen 
In neueren Delphi-Versionen zählt der Compiler für dich:
Delphi-Quellcode:
const
list: array[0..99] of string = ('Test1', 'test2', 'test3');
ergibt
Code:
[DCC Fehler] Unit1.pas(34): E2072 Anzahl der Elemente (3) weicht von der Deklaration (100) ab
Uli Gerhardt
|