Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: empty combobox displayed text

$
0
0

You can remove all valid values by counting how many there are and use ValidValues.Remove that many times as such

 

 

if (((SAPbouiCOM.ComboBox)(oForm.Items.Item("Combobox14").Specific)).ValidValues.Count > 0)

{

     int count = ((SAPbouiCOM.ComboBox)(oForm.Items.Item("Combobox14").Specific)).ValidValues.Count;

 

     for (int i = 1; i <= count; i++)

     {

          ((SAPbouiCOM.ComboBox)(oForm.Items.Item("Combobox14").Specific)).ValidValues.Remove(count-i,                     SAPbouiCOM.BoSearchKey.psk_Index);

     }

}


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>