![]() |
Problem mit constante und case of
Hallo,
ich hab in meinem projekt folgenden code vorliegen:
Delphi-Quellcode:
Nun bekomm ich folgenden Fehler: "Constant expression violates subrange bounds"
.
. . const VK_LG_DB0 = $00400000; . . . case vkCode of . . . VK_LG_DB0 : Result:= 'Toogle'; end; =( was bedeutet das ? wie kann ich es beheben ? MfG - Ghost |
Re: Problem mit constante und case of
Welchen Typ hat vkKeyCode?
|
Re: Problem mit constante und case of
sorry, hab ich vergessen zu erwähnen.
Delphi-Quellcode:
MfG - Ghost
var
vkCode: Word; |
Re: Problem mit constante und case of
Ein Word ist nur zwei Byte groß und kann deshalb nie den Wert der Integerkonstante annehmen, dieser liegt nämlich außerhalb des Wertebereichs.
|
Re: Problem mit constante und case of
also nehm ich einen anderen dateityp anstatt word? welchen ?
MfG - Ghost |
Re: Problem mit constante und case of
Integer, Cardinal, ...
|
Re: Problem mit constante und case of
DWord (double word)
|
Re: Problem mit constante und case of
danke,
Erledigt |
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:37 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz