OLGA:
Let me be clear, I wasn't dissing you're comments. The ALINES approach is most elegant and by far the better method if coding from scratch. I experimented with it today and it was a thing of beauty, flexible and fast. Again, if I had only known about it back in the day!
PS: Alas I feel...
I know I'm right... :) I been using the same prgs to process massive files (statutes, laws and codes) for more than 15 years. I'm not sure what version the change happened in... I just know that v5=no error, I can read 500000 bytes if I want. V9= anything over 8192 generates an error msg.
It's...
Here is the answer:
FGETSEX() from VFP2C32.FLL (http://vfpx.codeplex.com/wikipage?title=VFP2C32&referringTitle=Home) does not have 8192 chars limitation.
this fll library is full of useful stuff and the replacement fgets works without the 8192 limt.
Thanks to Pavel Celba at the msdn forum...
Alines shows some promise if all else fails... Funny, been writing FP code for more than 20 years and never fully appreciated this function... :) thanks,.
Would still prefer a one to one fix, however I may be able to code an fgets replacement that simply acts on the array instead of a file ptr...
@mike lewis:
of course I experimented with fread and other means of reading the entire file into memory and then processing. The problem with that method is that the native fp routines for processing chr by chr are just too slow. I'm simply looking for a way to make the old programs run in vfp9...
@danfreeman:
Im not kidding about the 8192. I have both versions of foxpro running. I have been using these programs for more than 13 years. When I upgraded to v9 the programs broke because of the limit. In previous versions (vfp5) you could specify the max return size as the third argument. In...
Thanks in advance to anyone that can help me.
I need to run some FoxPro programs that make extensive use of the fgets() function. These programs were written some years ago and unfortunately Microsoft altered the function in later versions limiting its maximum length return to 8192 bytes...
muchas gracias seniors!
wow, never seen such quick response... it is much appreciated
var sp1_suffix = document.createTextNode(String.fromCharCode(160)+"(" + zno + ")" );
seemed to to do the trick... haven't tested it thoroughly in every browser yet tho...
thanks monsake!
How do u insert a literal such as   in a DOM textnode using javascript?
In this code:
var sp1_sup = document.createElement("sup");
var sp1_suffix = document.createTextNode(" (" + zno + ")" );
sp1_sup.appendChild(sp1_suffix );
the literal string is printed.. how do I get...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.