wydaje mi sie, ze cos takiego mozna bylo zrobic
definiuje sobie
type
typy = (what=0,rekord,current,min,slots,trigger);
i pozniej chcialem uzyc
new.SubItems[what]:='sss';
i mowi, ze sa to nie komatybilne typy, jak to sie robilo?
wydaje mi sie, ze cos takiego mozna bylo zrobic
definiuje sobie
type
typy = (what=0,rekord,current,min,slots,trigger);
i pozniej chcialem uzyc
new.SubItems[what]:='sss';
i mowi, ze sa to nie komatybilne typy, jak to sie robilo?
new.SubItems[ord(what)]:='sss';
Albo definiujesz nie typ wyliczeniowy, tylko stałe (czyli:
const
what=0;
rekord=1;
current=2;
...)