cancel
Showing results for 
Search instead for 
Did you mean: 

Combo Clear

Former Member
0 Kudos

Hi All,

I have an issue in clearing the combo. I have a checkbox if the checkbox is selected then i loaded a values taken through query and selected one value in it. Before pressing the add button i unselect the checkbox here i removed the values in the combo but the selected value is displaying in the combo its should get clear how should i do this.

Thanks in Advance.

Regards,

Madhavi.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi..

Try this one u have to remove combo value

dim j as integer

ocombo = FormS.Items.Item("combo-ID").Specific

For j As Integer = ocombo.ValidValues.Count - 1 To 0 Step -1

ocombo.ValidValues.Remove(j, SAPbouiCOM.BoSearchKey.psk_Index)

Next

Regards..

Billa 2007

Former Member
0 Kudos

hi,

ocombo.Select(Nothing)

this is one way

the other way is adding a ""(null) validvalue and selectb it when unchecked and and remove all valid values

regards,

varma