Code: Alles auswählen
type
TLogPriorities = (lpUNKOWN, lpVERBOSE, lpDEBUG, lpINFO, lpWARN, lpERROR, lpCRITICAL);
Wie bekomme ich den Integer-Wert von einem Index heraus?
Code: Alles auswählen
type
TLogPriorityInfo = Array[TLogPriorities] OF String;
const
CLogPriorityDesc : TLogPriorityInfo =
('UNKNOWN', 'VERBOSE', 'DEBUG', 'INFO', 'WARNING',
'ERROR', 'CRITICAL');
Code: Alles auswählen
//so etwa
for i:=0 to n do Writeln(CLogPriorityDesc[i]) //funktioniert natürlich nicht!