Dear All,
Today , We will see, How to Display Auto Select Value in ComboBox through SDK.
Today , We will see, How to Display Auto Select Value in ComboBox through SDK.
Public Sub DisplayAutoSelValue(ByVal oApp As Object, ByVal aForm As SAPbouiCOM.Form, ByVal aComUId As Object, ByVal intIndex As Integer)
'********************************************
'' DECLARE LOCAL VARIABLES'
'********************************************
Dim aCombo As SAPbouiCOM.ComboBox = Nothing
Dim oRS As SAPbobsCOM.Recordset = Nothing
'********************************************
oApp = New ClsSAPConn
'********************************************
oRS = oApp.SAPCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
aCombo = aForm.Items.Item(aComUId).Specific
'********************************************
Try
aCombo.Select(intIndex, SAPbouiCOM.BoSearchKey.psk_Index)
Catch ex As Exception
Finally
If aCombo IsNot Nothing Then
aCombo = Nothing
End If
If oApp IsNot Nothing Then
oApp = Nothing
End If
End Try
End Sub