Converting FoxPro 2.6 Screens
See Also
You can convert FoxPro 2.6 screens (.scx files) to Visual FoxPro forms to make files available to the Form Designer and to add Visual FoxPro event model functionality. Converted screens are initially in a READ compatibility mode. For details, see Overview of READ Compatibility Architecture.
To convert a FoxPro 2.6 screen (.SCX) file
If you choose functional conversion, the process performs these steps:
-
Changes screens (.scx and .sct files) to Visual FoxPro form sets. The original screen files are given .s2x and .s2t extensions. Converted FoxPro screens and screen sets are changed to form sets in Visual FoxPro.
-
Sets the form set’s WindowType property to 2 (Read) or 3 (Read Modal) to retain backward compatibility. If you choose Visual Conversion, your form set’s WindowType property is set to 0 (Modeless) or 1 (Modal), which are Visual FoxPro settings, to match the modal setting of your screen.
-
Places code snippets in appropriate event and method code. For details on the mapping of FoxPro 2.6 screen features to Visual FoxPro properties, events, and methods, see Differences Between Visual FoxPro and Earlier Versions.
-
Creates a new .spr file and, optionally, an include file. Athough Visual FoxPro .scx files run directly, the .spr file provides backward compatibility to other application components that need it, and contains the following:
-
Any parameter statements and supporting functions and procedures from the cleanup code snippet in the original screen. Any supporting functions, if they exist, are in scope and are available to all events and methods of the form set and form.
-
An optional statement that specifies the global include file for the form. For details on the global include file, see Checking the .SPR File.
-
A DO FORM command that launches the .scx file.
You can then use the Form Designer to view your converted screen, enter new values for properties, methods, and events, or copy code from the .prg file. To ensure that your screen converted as you intended, see Checking Converted FoxPro 2.6 Screens.