Skip to Content
avatar image
Former Member

Combo Clear

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 16, 2008 at 09:11 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 09:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded