@ ... CLASS Command
Creates a control or object that can be activated with READ.
@ nRow, nColumn CLASS ClassName NAME ObjectName |
Parameters
- @ nRow, nColumn
-
Specifies the position of the control or object. The height and width of the control or object is determined by the class default height and width values.
Rows are numbered from top to bottom. The first row is number 0 in the main Visual FoxPro window or in a user-defined window. Row 0 is the row immediately beneath the Visual FoxPro system menu bar.
Columns are numbered from left to right. The first column is number 0 in the main Microsoft Visual FoxPro window or in a user-defined window. When a control or object is placed in a user-defined window, the row and column coordinates are relative to the user-defined window, not to the main Visual FoxPro window.
A position in the main Visual FoxPro window or in a user-defined window is determined by the font of the window. Most fonts can be displayed in a wide variety of sizes; some are proportionally spaced. A row corresponds to the height of the current font; a column corresponds to the average width of a letter in the current font.
You can position the control or object using decimal fractions for row and column coordinates.
- CLASS ClassName
-
Specifies the class of the control or object. ClassName can be a Visual FoxPro base class or a user-defined class. The following table lists the Visual FoxPro base classes you can specify for ClassName.
- NAME ObjectName
-
Specifies the name of the object reference variable to create. The object-oriented properties, events, and methods of the control or object can be manipulated by referencing this variable. For a complete list of the Visual FoxPro base classes, see Base Classes in Visual FoxPro.
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic

Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08