Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I =fgets(lnHandle,9999) ?
Message
From
29/09/1998 00:22:59
 
 
To
28/09/1998 21:32:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00141670
Message ID:
00141767
Views:
22
>>cDataVal = FGETS(nFH,1000)
>>
>>The variable cDataVal would contain the string up to the first CR or 1000 bytes, whichever comes first. Just keep looping through the file until done.
>
>Alright, something's fishy here. Maybe you can tell me what went wrong.
>
>I originally put in my routine "=fgets(lnHandle,999)" and it would crash. I kept changing the #. When the # was less that 256 it worked fine, but if I put in a # greater that 256 it crashed. Now I try it one more time to get the error message and it works fine.


Isn't that the way it always is? I've said to myself many times, "Self, that just isn't working right. It must be a bug!" And then I go to show it to someone else and it works perfectly. Such is life.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform