Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import from like 28_07_2003.TXT , 29_07_2003.TXT files
Message
From
29/07/2003 09:02:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00814477
Message ID:
00814487
Views:
11
Is there more than one date in one file? Do you want to import only certain lines from a file depending on the date part of the line?

If that's what you want, then there a a couple of ways I can think of, but the most straightforward way might be to read the file with the low level fgets() function and parse the characters 7 through 14 to get the date and just discard any lines that don't fall between the dates you want.

Alan

>Hi All,
>i have a like 28_07_2003.TXT , 29_07_2003.TXT files and its creating for date and its containing strings like below
>
>
>11:41,07.29.03,1N,3A,5N,7A,9A,2N,4N,6N,8N,0N,1D,3D,5D,7D,9D,2D,4C,6D,8C,0C
>11:41,07.29.03,1N,3A,5N,7A,9A,2N,4N,6N,8N,0N,1D,3D,5D,7D,9D,2D,4C,6D,8C,0C
>11:42,07.29.03,1N,3A,5N,7A,9A,2N,4N,6N,8N,0N,1D,3D,5D,7D,9D,2D,4C,6D,8C,0C
>11:43,07.29.03,1N,3A,5N,7A,9A,2N,4N,6N,8N,0N,1D,3D,5D,7D,9D,2D,4C,6D,8C,0C
>
>
>now .. i wantto create a cursor with field Cstring c(75) want to import the lines between two dates range as user choice . how can i do ?
>
>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform