Zitat:
CTRL_DRIVE: Byte = $0D;
typisierte Konstanten sind keine "echten" Konstanten,
sondern nur schreibgeschützte Variablen.
CASE verlangt aber "echte" Konstanten.
Dieses sind "echte" Konstanten:
Code:
const
{ Amp Drive }
CTRL_DRIVE = $0D; // $00 to $7E
{ Amp Toogle Controls (avail. depends on model!) }
CTRL_DRIVE_ONOFF = $1A; // $00 (off), $40 (on)
CTRL_DIST_ONOFF = $19; // $00 (off), $40 (on)
oder
Code:
const
{ Amp Drive }
CTRL_DRIVE = Byte($0D); // $00 to $7E
{ Amp Toogle Controls (avail. depends on model!) }
CTRL_DRIVE_ONOFF = Byte($1A); // $00 (off), $40 (on)
CTRL_DIST_ONOFF = Byte($19); // $00 (off), $40 (on)