Hi ya'll.
(related to the SBO ver. 6.5)
I got this problem with a comboBox of mine.
I've filled it. Now when I change the forms Mode I want to clear it and reinstate some new values. These values will ofcourse be different than the first ones... But... It keeps the old value visible..
Here's what I do:
Sub EmptyAndInitCombo(ByVal f As SAPbouiCOM.Form, ByVal ComboName As String)
Dim c As SAPbouiCOM.ComboBox
Dim i As Int16
c = f.Items.Item(ComboName).Specific
If c.ValidValues.Count > 0 Then
For i = c.ValidValues.Count - 1 To 0 Step -1
c.ValidValues.Remove(i,SAPbouiCOM.BoSearchKey.psk_Index)
Next i
f.Items.Item(ComboName).Refresh()
End If
End Sub
The Refresh() doesnt seem to do anything... ??
TBR
Allan Rasmussen, Denmark
Add a comment