>>Hello
>>
>>What is the maximum number of elements an array can have? I am reading in a text file using FILETOSTR() and converting to an array of lines using ALINES(). The file size is 132,040 KB. I am getting an error "Not enough memory to complete the operation", error 43.
>>
>>Any suggestions or ideas where to look?
>
>Jos,
>
>If you haven't mistyped and really want to slurp 132 megabytes, sys(3050) might need some tweaking as this is set depending on machine physical RAM on startup unless hinted at in config file. As Greg hinted such amounts might be handled otherwise using less memory via file functions. Depending on the line length, file structure and task to be done I'd probably slurp it into a cursor and work from there. In a beefy machine with memory set accordingly the alines() approach should work, but just to be safe I'd probably code it differently to be able to run on backup old HW.
>
>regards
Yes, I ended up limiting the memory using that function and it works now. I forgot that the app had recently been moved to an 8Gb RAM computer and forgot to add a memory limitation for VFP. Seems OK now.
Thanks
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.