Index
2005-12-02 12:07Derek Kalweit : set("order") doesn't work due to paths with spaces?
2005-12-02 12:43Dan Olsson : Re: set("order") doesn't work due to paths with spaces?
2005-12-02 13:05Charlie Coleman : Re: set("order") doesn't work due to paths with spaces?
2005-12-02 13:33Derek Kalweit : Re: set("order") doesn't work due to paths with spaces?
Back to top
set("order") doesn't work due to paths with spaces?

Author: Derek Kalweit

Posted: 2005-12-02 12:07:09   Link

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.

--

Derek

©2005 Derek Kalweit
Back to top
Re: set("order") doesn't work due to paths with spaces?

Author: Dan Olsson

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

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
Back to top
Re: set("order") doesn't work due to paths with spaces?

Author: Charlie Coleman

Posted: 2005-12-02 13:05:44   Link

At 12:07 PM 12/2/2005 -0500, Derek Kalweit 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

...

>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

...

I think you want to use the ORDER() function instead of the SET("ORDER") call.

-Charlie

©2005 Charlie Coleman
Back to top
Re: set("order") doesn't work due to paths with spaces?

Author: Derek Kalweit

Posted: 2005-12-02 13:33:00   Link

> > 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

> >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

> I think you want to use the ORDER() function instead of the SET("ORDER") call.

Thank you Charlie and Dan. I guess that code was written when used to

calling SET() for all the other settings that had to be set back.

Thank god for consistency............

--

Derek

©2005 Derek Kalweit