>Hi
>
>I have a form with a grid on it - in the load event of the form I have
>scan
>check for error
>endscan
>
>when I find an error I want the program to stop displaying the row with the error in it so that I can click on the error and correct it from a list box
>
>How do I get the scan to stop on the error - it just continues scanning til the end of the table
>
>Thanks
>
>Colin Northway
hi Colin,
scan
do case
case error
exit
endcase
endscan
You can also use locate and found()
Gregory