Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRY CATCH not working w/SKIP
Message
From
15/09/2003 15:12:50
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00829114
Message ID:
00829123
Views:
27
This message has been marked as the solution to the initial question of the thread.
AFAIK, there will only be an error generated if you are already at EOF and try to skip further (or BOF and skip a negative amount). If you are on a legal record and skip beyond EOF, you will simply be moved to EOF. The next skip will generate an error.

Alan

>This should "CATCH" the error of trying to SKIP
>beyond BOF or EOF, right?
>If so, has anyone reported this yet?
>
>
>CREATE CURSOR curTemp ;
>  ( id I )
>
>INSERT INTO curTemp ( id ) ;
>  VALUES ( 1 )
>
>TRY
>    SKIP 10001 IN curTemp
>    SKIP -10001 IN curTemp
>CATCH
>    ? "Caught"
>ENDTRY
>
>
>Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform