Navigation:  CodeBase >

Error -910 - Skip error

Print this Topic Previous pageReturn to chapter overviewNext page


If you get this error with the message:  skip must be made from valid record number; this means you've tried to do a FINDV N or P, or you are in a SCAN command and, for some reason, you have cleared the record buffer or at least the record number.  This would generally happen during a SAVE command.  In this case add the NOCLR option to the SAVE command and your loop should work just fine.

Another way to do this is to in your scan or findv N or P loop save the record Position before the save then after the save you can find the record position and the look or scan should continue.

define rcntr1 type R


scan @myfile_hndl key mykey

   //Do something to the data

    Rcntr1 = rcn(myfile_hndl)

     save @myfile_hndl nocnf noclr

     RCN @myfile_hndl RCN rcntre1 set




You can also check for an active record before you do the next or previous by using the IFNA() function.  If it returns True then you know the next or previous will just return an error and you can protect it before the FINDV command.  In the case of a SCAN, make sure you don't clear the record number or buffer of the file you are scanning.




Page url: