Hi
I am trying to use a Combobox for one field in my grid. This is a (supposedly) simple item which lets you select from a list "A,B,C".
I use the following:
You can skip thru past these fields with mouse, keys or tab from one to another. If you select an item from the dropdown list this is then displayed in the field as it should be. BUT then the combo display seems to return to a text field (as its lost focus) and the whole of VFP6 stops responding.
There is no code for GotFocus, LostFocus or Valid.
I have read thru all related threads and FAQs first and tried various ways to change what happens but none have worked. Does anyone have any suggestions? Thanks. Kaz.
I am trying to use a Combobox for one field in my grid. This is a (supposedly) simple item which lets you select from a list "A,B,C".
I use the following:
Code:
With ThisForm.Grid1.Columns(n)
.Text1.Visible = .F.
.ADDOBJECT('Combo1', 'ComboBox')
.Combo1.BorderStyle = 0
.Combo1.Style = 0
.Combo1.Visible = .T.
.CURRENTCONTROL = 'Combo1'
.REMOVEOBJECT('Text1')
.Combo1.RowSource = "A,B,C"
.ControlSource = "ABCfield"
.Sparse=.T.
ENDWITH
You can skip thru past these fields with mouse, keys or tab from one to another. If you select an item from the dropdown list this is then displayed in the field as it should be. BUT then the combo display seems to return to a text field (as its lost focus) and the whole of VFP6 stops responding.
There is no code for GotFocus, LostFocus or Valid.
I have read thru all related threads and FAQs first and tried various ways to change what happens but none have worked. Does anyone have any suggestions? Thanks. Kaz.