Controls and Objects Created in Earlier Versions

JavaScript Editor js editor     Web development 



Main Page

This topic describes support for controls and objects created in earlier FoxPro versions. Some controls behave slightly differently depending on whether you are using Visual FoxPro for Windows or Visual FoxPro for Macintosh; by default, controls in Visual FoxPro for Macintosh follow user interface conventions common to Macintosh applications. For example, by default the CheckBox, ComboBox, and OptionButton controls cannot receive the focus in Visual FoxPro for Macintosh. For more details about differences in control behavior, see the topic for the SET KEYCOMP command.

In Visual FoxPro, a NAME clause is available for each of the controls created in previous FoxPro versions. The NAME clause creates an object reference for controls created with @В ...В GET and @В ...В EDIT and allows you to manipulate the controls with Visual FoxPro properties, events, and methods. The NAME clause provides an intermediate step to upgrade your applications using Visual FoxPro object-oriented programming techniques.

Compatibility with FoxPro 2.x Controls

The following table lists the controls available in earlier FoxPro versions and the base class you can use to programmatically create the same control in Visual FoxPro.

FoxPro 2.x controls Equivalent VisualFoxPro controls Visual FoxPro base class names

@В ...В GET - Check Boxes

CheckBox Control

CheckBox

@В ...В GET - Lists

ListBox Control

ListBox

@В ...В GET - Popups

ComboBox Control

ComboBox

@В ...В GET - Push Buttons

CommandButton Control

CommandButton

@В ...В GET - Radio Buttons

OptionButton Control

OptionButton

@В ...В GET - Spinners

Spinner Control

Spinner

@В ...В GET - Text Boxes

TextBox Control

TextBox

@В ...В EDIT - Text Edit Regions

EditBox Control

EditBox

For a complete list of base classes in Visual FoxPro, see Base Classes in Visual FoxPro.

See Also



JavaScript Editor js editor     Web development