> Never use "then .. else" naked but instead "then begin ... end else > begin ... end" with appropriate indentation (I prefer "end else begin" > alone in a single line, but this is a matter of taste :) ; I also do that sometimes just to avoid the semicolon problem, even if there is only one command between "begin" and "end". Juha Manninen