Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Algorithmen, Datenstrukturen und Klassendesign (https://www.delphipraxis.net/78-algorithmen-datenstrukturen-und-klassendesign/)
-   -   E1012 Constant expression violates subrange bounds (https://www.delphipraxis.net/210377-e1012-constant-expression-violates-subrange-bounds.html)

cramer 14. Apr 2022 14:32

E1012 Constant expression violates subrange bounds
 
Moin,

ich nutze immer noch die BDS2006.

Ab welcher Version ist denn so eine Deklaration möglich?
Code:
const
  Test: array of Integer = [
    19536, 19541, 19546, 19551, 19555, 19559, 19564, 19569, 19577, 19582, 19587,
    19592, 19603, 19608, 19613, 19619, 19624, 19628, 19631, 19635, 19640, 19645
  ];

Uwe Raabe 14. Apr 2022 14:52

AW: E1012 Constant expression violates subrange bounds
 
Ich glaube, seit Delphi XE7.

Andreas13 14. Apr 2022 15:50

AW: E1012 Constant expression violates subrange bounds
 
Zum Eingrenzen der Möglichkeiten: XE5 kann es noch nicht.
Gruß, Andreas


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:36 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz