Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Low level file functions to get the number of lines
Message
From
22/07/1997 18:38:43
 
 
To
22/07/1997 17:59:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00041205
Message ID:
00041234
Views:
43
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform