Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Divide my table
Message
From
15/10/2004 14:54:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/10/2004 08:23:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00951662
Message ID:
00951819
Views:
8
>hi,
>
>thank you ,it works fantastic if mytable have a number exactly as 500000,
>
>but if mytable have 5000001,give error message(end of file encountered)

I see. Well, in that case, you must make the SKIP conditional:


use test
go top
i = 0
do while not eof()
copy to ("test" + trans(i)) next 100000
if not eof()
skip
endif
i = i + 1
enddo

The SKIP is required, because, for example, a "...next 10" will process records 1-10, but stay on record 10. So, the next command with "...next 10" will process records 10-19.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform