Navigation: ABC Library Reference > FileDropComboClass > FileDropComboClass Methods >====== Init (initialize the FileDropComboClass object) ====== | |
Init( use, combo, position, view, queue, relationmgr, windowmgr, errormgr [,add] [,sync] [,case] )
Init | Initializes the FileDropCombClass object. |
use | The label of the combo's USE attribute variable. |
combo | A numeric constant, variable, EQUATE, or expression containing the control number of the filedrop's COMBO control. |
position | The label of a string variable within the queue containing the POSITION of the view. |
view | The label of the filedrop's underlying VIEW. |
queue | The label of the combo's data source QUEUE. |
relationmgr | The label of the filedrop's primary file RelationManager object. See Relation Manager for more information. |
windowmgr | The label of the filedrop's WindowManager object. See Window Manager for more information. |
errormgr | The label of the filedrop's ErrorClass object. See Error Management for more information. |
add | A numeric constant, variable, EQUATE, or expression indicating whether records may be added to the lookup file. A value of zero (0 or False) prevents adds; a value of one (1or True) allows adds. If omitted, add defaults to one (1). |
sync | A numeric constant, variable, EQUATE, or expression indicating whether to reget the underlying data on a new selection (allows hot fields). A value of one (1 or True) regets the data (so it can be displayed in other controls besides the COMBO control); a value of zero (0 or False) does not. If omitted, sync defaults to one (1). |
case | A numeric constant, variable, EQUATE, or expression indicating whether filedrop searches are case sensitive. A value of one (1 or True) provides case sensitive searches; a value of zero (0 or False) gives case insensitive searches. If omitted, case defaults to zero (0). |
The Init method initializes the FileDropComboClass object.
Implementation: Among other things, the Init method calls the PARENT.Init (FileDropClass.Init) method. See FileDropClass for more information.
Example:
ThisWindow.Init PROCEDURE
CODE
!procedure code !init filedropcombo object
FDBC4.Init( CLI:StateCode, | ! USE variable
?CLI:StateCode, | ! COMBO control
Queue:FileDropCombo.ViewPosition,| ! VIEW POSITION variable
FDCB4::View:FileDropCombo, | ! VIEW
Queue:FileDropCombo, | ! QUEUE
Relate:States, | ! RelationManager object
ThisWindow, | ! WindowManager object
GlobalErrors, | ! ErrorClass object
1, | ! allow adds
0, | ! refresh hot fields on new selection
0) ! case insensitive searches
FDBC4.Q &= Queue:FileDropCombo
FDBC4.AddSortOrder()
FDBC4.AddField(ST:StateCode,FDBC4.Q.ST:StateCode)
FDBC4.AddField(ST:State,FDBC4.Q.ST:State)
FDBC4.AddUpdateField(ST:StateCode,CLI:StateCode)
See Also: FileDropClass.Init