Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complete Syntax for @ ... GET var NAME txtVar
Message
From
29/09/2003 20:15:32
 
 
To
29/09/2003 17:33:54
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00832520
Message ID:
00833351
Views:
28
Hi Gordon,

think hard before choosing this path.

other @ get clauses can have an optional name clause,
which only makes sure that the objct in the screen
gets this name. I've "rewritten" the FPW2.6 screen
generator program to always add a name clause based
on the controlsource (memvar's and array's).

If you really need class based screen handling,
it is IMHO better to aim for a total port.

The "converter" can be fixed to produce workable
results. (Been there, tested both <g>)

hth

thomas


from vfp3.hlp:


Creates a control or object that can be activated with READ.

Syntax

@ nRow, nColumn CLASS ClassName NAME ObjectName

Arguments

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. In Visual FoxPro, row 0 is the row immediately under the Visual FoxPro system menu bar.
Columns are numbered from left to right. The first column is number 0 in the main 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 the main Visual FoxPro window.
In Visual FoxPro, a position in the main Visual FoxPro window or in a user-defined window is determined by the font of the main Visual FoxPro window or the user-defined window. Most fonts can be displayed in a wide variety of sizes, and 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.
In Visual FoxPro, 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.

Base class names
CheckBox Line
Column ListBox
ComboBox OLEControl
CommandButton OLEBoundControl
CommandGroup OptionButton
Container OptionGroup
Control Page
Cursor PageFrame
Custom Relation
DataEnvironment Separator
EditBox Shape
Grid Spinner
Header TextBox
Image Timer
Label
NAME ObjectName

Specifies the name of the object reference memory variable to create. The object-oriented properties, events, and methods of the control or object can be manipulated by referencing this memory variable.

Remarks

@ ... CLASS provides an intermediate step for converting programs and applications created in earlier versions of FoxPro to the preferred object-oriented programming methods of Visual FoxPro. For additional information about backward compatibility with FoxPro 2.x controls, see Controls and Objects.
For additional information about object-oriented programming in Visual FoxPro, see Chapter 3, "Object-Oriented Programming," in the Developer's Guide.
Previous
Reply
Map
View

Click here to load this message in the networking platform