BUG: STRIPPATH() in GENSCRN Does Not Strip UNIX Paths

Last reviewed: January 12, 1995
Article ID: Q124781
The information in this article applies to:
  • Microsoft FoxPro for UNIX, version 2.6

SYMPTOMS

When using .IDX index files with databases, the code generated by the Screen Builder to open these files is not correct.

CAUSE

The STRIPPATH function in GENSCRN.PRG (the screen code generator) does not strip the path from filenames containing the '/' (without quotation marks) that is used in UNIX paths.

RESOLUTION

Method 1

Use .CDX type index files instead of .IDX type index files.

Method 2

Use the following steps to modify the screen generator:

  1. Type the following command in the Command window:

    MODIFY COMMAND //usr/lib/FoxPro/genscrn.prg

  2. Choose Find from the Edit menu, and type the following in the Look For box:

    FUNCTION strippath

  3. Choose the Find button.

  4. Press the DOWN arrow key to scroll down approximately five lines to place the cursor on the following line:

    PARAMETER m.filename

  5. Add the following line of code below the current line:

    m.filename=STRTRAN(m.filename,'/','\')

    NOTE: This changes all forward slashes to backward slashes so that the function will strip the path correctly.

  6. Choose Save from the File menu.

  7. Choose Close from the File menu.

  8. Type the following command in the Command window:

    COMPILE //usr/lib/FoxPro/genscrn.prg

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional reference words: FoxUnix SBuilder 2.60 buglist2.60
KBCategory: kbtool kbbuglist
KBSubcategory: FxtoolSbuilder


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 12, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.