Init (initialize the FileDropClass object)

Top  Previous  Next

 

Init( listcontrol, viewposition, view, listqueue, relationmanager , window manager )

Init

Initializes the FileDropClass object.

listcontrol

A numeric constant, variable, EQUATE, or expression containing the control number of the filedrop's LIST control.

viewposition

The label of a string variable within the listqueue containing the POSITION of the view.

view

The label of the filedrop's underlying VIEW.

listqueue

The label of the listcontrol's data source QUEUE.

relationmanager

The label of the filedrop's primary file RelationManager object. See Relation Manager for more information.

windowmanager

The label of the FileDrop object's WindowManager object. See Window Manager for more information.

The Init method initializes the FileDropClass object.

Implementation:

Among other things, the Init method calls the PARENT.Init (ViewManager.Init) method to initialize the view related parts of the FileDropClass object. See View Manager for more information.

Example:

CODE

StFD.Init(?CLI:StCode,StateQ.Pos,StateView,StateQ,Relate:States,ThisWindow)

StFD.Q &= StateQ

StFD.AddSortOrder(StCodeKey)

StFD.AddField(STFile:StCode,StFD.Q.StCode)

StFD.AddField(STFile:StName,StFD.Q.StName)

StFD.AddUpdateField(STFile:StCode,CLI:StCode)

See Also:     ViewManager.Init