Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to stop a grid?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00900013
Message ID:
00900014
Views:
15
This message has been marked as the solution to the initial question of the thread.
>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 && scan
    endcase
endscan
You can also use locate and found()
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform