PRB: Create Cursor with Path Causes Invalid Path or Filename

Last reviewed: June 27, 1995
Article 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


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.