DOCUMENT:Q121088  09-NOV-1994  [FOXPRO]
TITLE   :FIX: AutoScreen of Extremely Wide Table Causes Error
PRODUCT :Microsoft FoxPro
PROD/VER:2.60    | 2.60
OPER/SYS:WINDOWS | MS-DOS
KEYWORDS:kbother kbbuglist kbfixlist

----------------------------------------------------------------------
The information in this article applies to:

 - Microsoft FoxPro for Windows, version 2.6
 - Microsoft FoxPro for MS-DOS, version 2.6
----------------------------------------------------------------------

SYMPTOMS
========

Creating an AutoScreen in the Catalog Manager causes one of the following
error messages to appear:

   FoxPro for Windows
   ------------------

      Invalid file descriptor.

   FoxPro for MS-DOS
   -----------------

      Variable not found.

After you choose Cancel in the dialog box displaying either of the error
messages listed above, the following error message is also displayed:

   <filename>.spr not found or not a supported type

CAUSE
=====

The table used by the AutoScreen tool contains a large number of fields
with long names.

STATUS
======

Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem was corrected in
FoxPro 2.6a for Windows and FoxPro 2.6a for MS-DOS.

MORE INFORMATION
================

The GENSCRN.PRG program, which is run by the AutoScreen utility, contains
the following line:

   SET FIELDS TO &mfieldsto

If the list of fields stored in MFIELDSTO is greater than approximately
2048 characters, the SET FIELDS command does not run properly.

Steps to Reproduce Problem
--------------------------

1. Create a table with a large number of fields that have long names.

2. Start the Catalog Manager.

3. Select the Table tab, add the table, and then choose USE.

4. Choose the AutoScreen button (above the Label tab) in Catalog
   Manager.

When the AutoScreen tool is approximately one-third of the way finished
creating the screen, it stops, displaying the error messages described at
the beginning of this article.

Additional reference words: FoxDos FoxWin 2.60 2.60a buglist2.60
fixlist2.60a auto-
screen
power tool catman
KBCategory: kbother kbbuglist kbfixlist
KBSubcategory:

=============================================================================

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.

Copyright Microsoft Corporation 1994.