cancel
Showing results for 
Search instead for 
Did you mean: 

Combo box question

Former Member
0 Kudos

How do you reset a combo box back to an unselected state? For example if I want to disable a combo box based on a user's selection how do I remove the value so that there is no value selected?

I know I can use this code to select a value:

oComboBox.Select(val,SAPbouiCOM.BoSearchKey.psk_ByValue);

Is there a similiar way to unselect something?

Accepted Solutions (1)

Accepted Solutions (1)

FOA
Advisor
Advisor
0 Kudos

Hi Laura,

For such cases there are several possibilities. Please take a look at this thread which covers many of them. You have to work with the datasource bounded to the combobox.

Best regards,

Felipe

Former Member
0 Kudos

Thanks for the post Felipe.

I found this code to use from one of your posts as I have a user datasource:

m_UserDS.ValueEx = oValidVal.Value
' Clear a value of a user data source
m_UserDS.ValueEx = Nothing

My only question is what is oValidVal.Value in this context?

Former Member
0 Kudos

Thanks Felipe. I just used the clear value statement and that seems to work fine.

Answers (0)