Sorting filePro Arrays
Bob Stockler
bob at trebor.iglou.com
Sun May 18 15:20:18 PDT 2008
After I posted my ADVT for my routines to sort filePro arrays,
I tested all of my sorting tables and found a problem with one
on Windows that writes the elements of an array to a temporary
file, then uses the Windows SORT program to sort it an redirect
it to a file that that is then read back in to the array.
That worked on Windows Me and the filePro version I had on it in
2003 when I wrote to programs, but it doesn't now on Windows XP
and the latest version of filePro.
The array is written out to a tempory file OK, but the file to
which SORT's output is redirected doesn't contain anything. I
got a command ("cmd") prompt and executed:
SORT sort.tmp > sorted.tmp
and it worked as expected, but doing the same thing with filePro's
SYSTEM command no longer works. Here is the significant code:
If: DOS
Then: TEMP1 = "C:\temp\sort.tmp"
If: DOS
Then: TEMP2 = "C:\temp\sorted.tmp"
If: DOS
Then: system noredraw "SORT" < TEMP1 < ">" < TEMP2
The file "sorted.tmp" is created, but doen't contain the redirected
output of SORT.
Can anyone offer any suggestions?
Bob
--
Bob Stockler +-+ bob at trebor.iglou.com +-+ http://members.iglou.com/trebor
More information about the Filepro-list
mailing list