Microsoft KB Archive/187725

{| = BUG: Error Converting 2.6 Screen With Both Mac And Win Objects =
 * width="100%"|

ID: Q187725

The information in this article applies to:


 * Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a

SYMPTOMS
An error appears when you open a FoxPro 2.6 screen (.scx file) in Visual FoxPro and select the check box to Convert both Macintosh and Windows form records in the Visual FoxPro Converter dialog box. Changing the type of conversion performed (functional or visual) does not prevent the error.

RESOLUTION
Do not select the Convert both Macintosh and Windows form records check box. Only convert the Windows form records.

If desired, once the form is converted, it can be taken back to Visual FoxPro for Macintosh and opened by first issuing the COMPILE FORM command. Then you can open the form. This also applies if trying to open the form in Visual FoxPro for Windows 3.x if you have first converted the form in a later version of Visual FoxPro.

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

MORE INFORMATION
Below is the complete text of the error message received:

C:\SCREENS\TEST.SCX: Begin Conversion 06/10/98 04:10:15 PM  C:\SCREENS\TEST.SCX: End Conversion: 06/10/98 04:10:17 PM (Successful   conversion took 2 seconds.)

C:\SCREENS\TEST.SCX (MACINTOSH VERSION): Begin Conversion 06/10/98 04:10:17 PM

Fatal Error in Converter: Error: Variable 'ENVIRON' is not found. Error Number: 12 Method: converter Offending Code: IF ... File being processed: c:\screens\test.scx

Steps to Reproduce Behavior
1. Create or obtain a FoxPro 2.6 screen that has both Macintosh and Windows

form records. Creating a screen in FoxPro 2.6 that has both Macintosh and Windows form records is beyond the scope of this article. 2. Open the form in Visual FoxPro 5.0 or later. 3. In the Visual FoxPro Converter dialog box, select the check box to

Convert both Macintosh and Windows form records. At some point in the conversion process, the error appears.