Hello Sieghard. > Why could that drive someone crazy, ?
Huh, I was talking about all the possibilities that enum gives and the difficult task to choose the best one. The "new illegal-nil-none item" in the enum can be placed everywhere but imho at end will give shorter code and so less chance to introduce new bug. This when code like this is used: --> for ar1:= low(scrollbarareaty) to high(scrollbarareaty) do begin // was changed with (due to 2 last added items): ---> for ar1:= low(scrollbarareaty) to sba_end do begin ________________________________________ And there is also the proposition of Roland that is great: type TOption = (optNil = -1, optOne, optTwo, optThree); TValidOption = optOne..optThree; var o: TOption; begin o := optNil; for o := Low(TValidOption) to High(TValidOption) do _________________ You see, not easy to decide what code to choose. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

