Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Low level file functions to get the number of lines
Message
De
22/07/1997 18:38:43
 
 
À
22/07/1997 17:59:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00041205
Message ID:
00041234
Vues:
41
>>>If you know the length of the record (which you should) take the size of the incoming file and divide it by the record length. This will give you # of records.
>>
>>All lines have a different length. :(
>
>EEEWWWW!!!!! Icky-Poo!!!!! Variable length input records!!!!!!
>
>That DOES put a tad bit of a challenge on it, doesn't it. And everything else I can come up with involves knowing record length.
>
>Can you work with an 'average' length?

No, but Winfried's solution seems to be the way to go.

The reason the file has various length for each line is because the scanner program, depending on what the user scan and other factors, will result in different information being stored.

On the Visual FoxPro side, following a certain naming convention, we then know what to do with each line when importing them.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform