ID: Q124781
The information in this article applies to:
When using .IDX index files with databases, the code generated by the Screen Builder to open these files is not correct.
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.
Use .CDX type index files instead of .IDX type index files.
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
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
Last Reviewed: January 12, 1995