How is the ComboBox.Text working
Hi Patrick:
I am having a hard time trying to understand what you are doing, but...
Quote:
> When the user choose one of these list entries only
> the Value without the description shall be shown and
> send direct via dll to another machine.
Shown where? Are you having problems figuring out the value?
Quote:
> My problem is still to get these Value out of the list
> without the description into the "First" textfield in
> the ComboBox.
Getting the value is not problem -- just store it in the ItemData and use
that, i.e.
Private Sub cboChoose_Click()
If cboChoose.ListIndex > -1 Then
cboChoose.Text = cboChoose.ItemData(cboChoose.ListIndex)
End If
'Note: You also could get away with using Val instead of the
ItemData, i.e.
'If cboChoose.ListIndex > -1 Then
' cboChoose.Text = Val(cboChoose.Text)
'End If
End Sub
If the above doesn't help, then post a code example showing exactly what you
are doing - -maybe I can figure out a solution from that.
Hope this helps,
Doug.