Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRY CATCH not working w/SKIP
Message
De
15/09/2003 15:12:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00829114
Message ID:
00829123
Vues:
28
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform