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