Screen Differences

See Also

You can run unconverted FoxPro 2.6 screen (.spr) files in Visual FoxPro. Visual FoxPro forms use code in events and methods and settings of properties instead of code snippets.

FoxPro 2.6 screen feature Visual FoxPro property, method or event
#DEFINE, #INSERT
preprocessor statements
Global include file called by new .spr file. See Checking the .SPR File
#Section 1 Setup code Form set Load event
#Section 2 Setup code Form Load event
Cleanup code except
procedures
Unload event
Code snippets Method and event code, and properties
Constants Resolved only in method and event code. See Checking the .SPR File.
Overlapping @ ... GET
controls in .prg files
ZOrder method, and ActiveForm and ActiveControl properties
Macro substitutions Unresolved in properties. Use variables instead. See Checking Converted FoxPro 2.6 Screens.
READ WindowType Property

For more details on changing screen code in forms, see Checking Code After Conversion, Checking the .SPR File, Language Differences. and “Assigning Method and Event Code” in Chapter 3, Object-Oriented Programming, and “Setting Properties at Design Time” in Chapter 9, Creating Forms, both in the Programmer’s Guide.