Condividi tramite


Field Mover Foundation Class

Category Movers
Default Catalog Visual FoxPro Catalog\Foundation Classes\User Controls
Class _fieldmover
Base Class Container
Class Library _mover.vcx
Parent Class _supermover
Sample ...\Samples\Solution\Ffc\movers.scx

Remarks

This is a super mover list box class that automatically loads fields from the current data source when you drop it on a form.

To use, drop the class on a project or form or, from the Component Gallery Item Shortcut Menu, select Add to Project or Add to Form. When you add the class to a form, Visual FoxPro opens a builder so you can accept or specify the appropriate SkipGeneral, SkipMemo, and AllowReadOnly values. When you drop the class on a project, you can choose between adding the class or creating a subclass.

See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.

Properties, Events, Methods Description
AllowReadOnly property Allows for a read-only datasource.
Default: .F.
AutoInit property Automatically run when loaded.
Default: .T.
CurrentAlias property The current alias determined by ALIAS( ).
Default: ""
CurrentDBC property The current database file.
Default: ""
CursorType property Specifies the type of cursor.

1 = local view
2 = remote view
3 = table

Default: 3

DBCTable property Name of the table in the database.
Default: ""
MultiTable property Specifies whether to support multiple
tables.
Default: .F.
SkipGeneral property Specifies whether General fields are
included in the list.
Default: .F.
SkipMemo property Specifies whether Memo fields are
included in the list.
Default: .F.
TableType property Returns the table type - SYS(2029).
Default: 0
AcolScan method Scans a specific column in the array.
Syntax: AcolScan(@wztarr, wztexpr, wztcol)
Return: none
Arguments:
wztarr specifies the array to scan.
wztexpr specifies the target expression for
which to scan.
wztcol specifies the column to scan.
AddToArray method Adds sContents to the array,
aAddToArray, at iRow.
Syntax: AddToArray(@aAddToArray,
sContents, iRow)
Return: none
Arguments:
aAddToArray specifies the array to which
to add an item.
sContents specifies the addition to the
array.
iRow specifies in which array row to insert
sContents.
Alert method Displays a messagebox.
Syntax: Alert(pMessage)
Return: none
Arguments:
pMessage specifies the message to be
displayed by MESSAGEBOX( ).
FieldChange method Triggered when fields selected changes.
Syntax: FieldChange(nButton)
Return: none
Arguments:
nButton specifies the button pressed.
GetTableData method Retrieves fields from a table. aWizFlist
contains the list of fields, aCalcFields
contains the list of calculated fields,
aPickFields contains the list of selected
fields.
Syntax: GetTableData( )
Return:aWizFList, aCalcFields,
aPickFields
Arguments: none
InitData method Initializes data.
Syntax: InitData( )
Return: none
Arguments: none
InitVars method Initializes variables used by movers.
Syntax: InitVars( )
Return: none
Arguments: none
JustStem method Retrieves the filename stem.
Syntax: JustStem(m.filename)
Return:m.filename
Arguments:
m.filename specifies the filename from
which the stem is extracted.
SetDataProps method Sets data properties of the data source.
Syntax: SetDataProps( )
Return: none
Arguments: none
UpdateStatusbar method Internal to the class.

See Also

Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Visual FoxPro Foundation Classes | super mover