Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Handling in Scan Endscan Loop
Message
From
29/01/2014 05:04:49
 
 
To
29/01/2014 04:49:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01592536
Message ID:
01592539
Views:
57
Thank, I will study the same.

>
Scan
>   Try
>      *do your thing
>   Catch
>      Loop
>   Endtry
>Endscan
>
>
>
>>I have a SCAN-ENDSCAN loop with Millions of records in between. The records are infact the name of Files like C:\Bills\1.txt,c:\bills\2.txt.
>>
>>The code between takes the files and edit the TXT files as per my requirement.
>>
>>Generally Things go fine, however sometimes there are files with error inside TXT files only and my code does not satisfy the condition and therefore gives an error window like
>>
>>CANCEL,SUSPEND,IGNORE.
>>
>>At this time I Select IGNORE and my process goes further to the next record.
>>
>>Is there anyway by which is during course of SCAN ENDSCAN Error occurs, it should automatically IGNORE and move to the next record. so that I have not to wait infront of the screen for contionious monitorng
>>
>>If yes, kindly provide the piece of that Code.
>>
>>Regards
Harsh
Previous
Reply
Map
View

Click here to load this message in the networking platform