Sorting filePro Arrays
Bob Stockler
bob at trebor.iglou.com
Mon May 19 13:34:43 PDT 2008
Top Post . . .
After much futzing and stumbling around, this blind pig found
an acorn after all, and it was a simple fix at that:
If: DOS
Then: TEMP1 = "C:\temp\sort.tmp"
If: DOS
Then: TEMP2 = "C:\temp\sorted.tmp"
If: ''''' DOS
Then: ''''' system noredraw "SORT" < TEMP1 < ">" < TEMP2
If: DOS
Then: system noredraw "SORT.exe" < TEMP1 < ">" < TEMP2
^^^^
Thanks for the ideas posted.
Bob
PS - This endeavor did serve one good purpose - I had previously
failed to warn Windows users that when using "SORT.exe" it
was not possible to sort with case sensitivity, where all of
my filePro sorting routines offered that option.
Bob Stockler wrote (on Sun, May 18, 2008 at 06:20:18PM -0400):
| 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
--
Bob Stockler +-+ bob at trebor.iglou.com +-+ http://members.iglou.com/trebor
More information about the Filepro-list
mailing list