> the fact that it raises NO range check error during Create and the first > writeln seems weird.
Line 16 (Inc statement) should raise one (ensure you're compiling with the correct option, by default range checking is off), the others shouldn't. Range check occurs on write, not read. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/default-value-of-a-sub-range-field-produces-No-range-Check-error-tp5722908p5722909.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal