![]() |
AW: Brauche Hilfe bei Delphi 6 doppeltes case-Label
Blöd, wenn B mal >9 wird.
|
AW: Brauche Hilfe bei Delphi 6 doppeltes case-Label
So etwas kann man mit einem Array lösen
Delphi-Quellcode:
oder (im Advanced Mode) mit einem Dictionary. Dort trägt man dann nur die erlaubten Kompinationen mit dem entsprechenden Preis ein.
var
PreisLookup: array[0..9,0..9] of double; Result := PreisLookup[a,b]; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:45 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