Hi! > In my program I use the following code to check whether the user > pressed the ON key: > ... Have you tried OSDisableBreak? Maybe it helps? In any case, encapsulating your routine in TRY..ONERR..ENDTRY will help... Cheers, Zeljko Juric