Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Low Level Files
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00357441
Message ID:
00357446
Views:
15
>That's strange, all right. Your condition definately tests FEOF() and not EOF() (an easy mistake when it is late <g>)? The table's record pointer doesn't have any effect on a low level file handle. And the LLFFs don't use a work area.
>
>Are you using a UDF in the value list of the INSERT INTO command? Or do you have row or field validations that call a UDF? If so, something may be changing the value the file handle that you test with FEOF( ).
>
>-Bob

I'm definitely testing for FEOF(INVOICE) (where INVOICE is the handle I assigned when I used FOPEN to open the text file)

I found that if I test FEOF(INVOICE) prior to the INSERT INTO code, it returns false, but immediately following the INSERT INTO code, it returns true.

Unless I've completely lost my mind, I'm quite sure that I've used this type of routine before (parse a text file, store the stuff I need into variables, insert the variables into a table, read in the next line of the text file, wash, rinse, repeat, etc)

I looked back over the code a few minutes ago and can't seem to find where the problem is.
Previous
Reply
Map
View

Click here to load this message in the networking platform