* support user Escapes for interrupting the main loop PrevOnEsc = on('escape') && save previous Escape handler PrevEscape = set('escape') && previous Escape enablement state Set escape on && enable escape handling plHalt = .f. && allow loop to run until this flag is toggled On escape plHalt = .t. && force immediate termination if user escapes
Scan && AND stnum > 0 AND UPPER(street)<> "ZZZ" && Should have indexes on SZipped, StNum, upper(street) If m.plHalt and messagebox('Do you want to stop Situs Zipping process?',36,'Stop Zipping')=6 Exit Else plHalt = .f. Endifworks fine.