steve4king
IS-IT--Management
I'm fixing an issue with some old code:
Set("order") returns "tag myIndexName of [full path of current cdx file]"
The problem is that if there is a space in my path, fox doesn't like it.. even if it's in quotes.
My fire-from-the-hip fix would be to replace 'set("order")' with 'order()' which will return just "myIndexName".. which is all I need.
However, elsewhere in this program I see that it was originally using 'order()' and at some point was changed to 'set("order")' with the only note for this saying, "&& Save any order set".
I use CDX files, no IDX files, so there is only one index file per table file.
Before I change 12 different files in this project..
Can anyone think of a possible reason for the previous change from 'ORDER()' to 'SET("ORDER")'?
Thanks,
-Stephen
Code:
select sometable
lcOriginalIndex = set("order")
set order to SomeOtherIndex
**
**do stuff
**
set order to &lcOriginalIndex
Set("order") returns "tag myIndexName of [full path of current cdx file]"
The problem is that if there is a space in my path, fox doesn't like it.. even if it's in quotes.
My fire-from-the-hip fix would be to replace 'set("order")' with 'order()' which will return just "myIndexName".. which is all I need.
However, elsewhere in this program I see that it was originally using 'order()' and at some point was changed to 'set("order")' with the only note for this saying, "&& Save any order set".
I use CDX files, no IDX files, so there is only one index file per table file.
Before I change 12 different files in this project..
Can anyone think of a possible reason for the previous change from 'ORDER()' to 'SET("ORDER")'?
Thanks,
-Stephen