Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import from like 28_07_2003.TXT , 29_07_2003.TXT files
Message
De
29/07/2003 09:02:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00814477
Message ID:
00814487
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform