on 11-04-2004 10:06 AM
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
Hi Christian,
You also need to clear the datasource associated with the ComboBox e.g
DSComboBox.Value = "";
Regards, Lita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
10 | |
10 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.