ID: Q99601
2.50x 2.60 2.60a 3.00 | 2.00 2.50x 2.60 2.60a
WINDOWS | MS-DOS
kbprb
The information in this article applies to:
When you are running FoxPro from a network, if you try to generate screen code using the FoxPro screen generator, FoxPro generates the error message "Cannot create file GENSCRN.FXP."
A similar error ("Cannot create file GENMENU.FXP") occurs if you try to generate menu code from the menu generator. This error can also occur if you are running Visual FoxPro.
NOTE: The same situation occurs with TRANSPORT.PRG and TRANSPORT.FXP, which are used when you bring a FoxPro for MS-DOS program into FoxPro for Windows or vice versa. In this case, the error message received is "Cannot create file TRANSPORT.FXP."
When FoxPro runs a .PRG file, it compiles the .PRG file and creates the compiled .FXP version. The error message above appears when FoxPro cannot create the GENSCRN.FXP or GENMENU.FXP file in the main FoxPro directory. When FoxPro is on a network, this problem will occur if you do not have create rights to the main FoxPro directory.
There are two ways to work around this problem:
The .FXP file is created only once, so if the system administrator creates a screen and generates it, the GENSCRN.FXP file will be created in the main FoxPro directory on the network.
Complete the following steps:
1. Compile GENSCRN.PRG on your local hard disk.
2. From the main FoxPro menu, choose Program and then choose Compile.
Select GENSCRN.PRG in the FoxPro network directory as the file to
compile.
3. At the bottom of the Compile dialog box, choose the More button to
change the location of compiled files.
4. Send the compiled file to your local workstation's FoxPro directory.
5. In the Command window, type the path to the GENSCRN.FXP or the
GENMENU.FXP file. For example:
_GENSCRN="C:\FOXPROW\GENSCRN.FXP"
NOTE: You can add this command to your CONFIG.FPW file instead of
issuing it in the Command window.
Additional reference words: VFoxWin 3.00 MBuilder FoxDos FoxWin 2.50 2.00
2.50a GENSCRN errmsg err msg 2.50b 2.60 2.60a
KBCategory: kbprb
KBSubcategory: FxtoolMBuilder
Keywords : kberrmsg FxtoolMBuilder
Version : 2.50x 2.60 2.60a 3.00 | 2.00 2.5
Platform : MS-DOS WINDOWS
Last Reviewed: May 22, 1998