Microsoft KB Archive/128487

{| = PRB: Create Cursor with Path Causes Invalid Path or Filename =
 * width="100%"|

ID: Q128487

The information in this article applies to:


 * Microsoft FoxPro for Windows, version 2.6a

SYMPTOMS
Using the Create Cursor command with a specified path will produce an invalid path or filename error.

RESOLUTION
A cursor cannot be created with a path statement. You must create the cursor as follows:

CREATE CURSOR employee ; (name C(20), addr C(30), city C(30), zip C(5), salary N(8,2), ;    comments M)

STATUS
This behavior is by design.

MORE INFORMATION
The Language Reference and online Help appears to suggest that you can create a cursor with a path. This is not correct.

Steps to Reproduce Behavior

In the Command window, type this:

CREATE CURSOR c:\employee ; (name C(20), addr C(30), city C(30), zip C(5), salary N(8,2), ;    comments M) Additional reference words: FoxWin 2.60a file name KBCategory: kbprg kbprb kbdocerr KBSubcategory: FxprgGeneral
 * }