PRB: Calling dBASE UDF: "File '<UDF_name>.PRG' Does Not Exist"

Last reviewed: June 26, 1995
Article ID: Q114658
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6
  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b, 2.6
  • Microsoft FoxPro for Macintosh, versions 2.5b, 2.5c

SYMPTOMS

A program created in dBASE that calls a user-defined function (UDF) causes the following error message when run in FoxPro:

   File '<UDF_name>.PRG' does not exist.

CAUSE

dBASE recognizes only the first nine characters of a UDF name. FoxPro recognizes the first ten characters.

WORKAROUND

Modify your program so that all calls to UDFs use at least the first ten characters of the UDF name.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Problem

Run the following program:

   WAIT 'Main'
   DO P234567890       && displays 'In Procedure'
   DO P23456789        && error in FoxPro, but valid in dBASE
   a=F234567890('')    && displays 'In Function'
   b=F23456789('')     && error in FoxPro, but valid in dBASE

   PROCEDURE P23456789012345
   WAIT 'In Procedure'
   RETURN

   FUNCTION F23456789012345
   PARAMETERS x
   WAIT 'In Function'
   RETURN x

Once the "File '<UDF_name>' does not exist" error message is displayed, choose Ignore when prompted and continue running the program.

dBASE is manufactured by a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability.


Additional reference words: FoxDos FoxWin 2.50 2.50a 2.50b 2.60 errmsg err
msg
KBCategory: kb3rdparty kberrmsg kbprb
KBSubcategory: FxinteropGeneral


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