Re: set("order") doesn't work due to paths with spaces?

Author: Dan Olsson

Posted: 2005-12-02 at 12:43:33

At 2005-12-02 18:07, you wrote:

> Hello. Another developer here just tracked down a bug that is

>caused by set("order") returning a full "TAG blah OF c:\blah\blah with

>spaces\blah.cdx" instead of just a "TAG blah", as was set with the

>original "set order to" command. This is disasterous when you save off

>the order, "set order to" to increase data handling performance, and

>then try to set it back-- VFP doesn't know how to parse the spaces in

>the path(and VFP doesn't quote it from Set("order")), and bombs. I'm

>assuming we can parse the output to make it work, but hasn't this been

>found before? Anyone have a better work-around? Thanks.

Save the numeric value of ORDER() instead.

******************************

* Dan Olsson

* <mailto:dan@dolittle.se>

* <http://www.dolittle.se>

©2005 Dan Olsson