Access objects properties

  • Thread starter Thread starter =?iso-8859-1?Q?Jos=E9_Flores?=
  • Start date Start date
?

=?iso-8859-1?Q?Jos=E9_Flores?=

Hello
I have an object customer with many properties (id,
firstname, lastname, etc.)
I have a combobox with all properties name of my customer
object.
How can i directly access the property value of the
combobox selected item?
I mean i don't want to use:
Select Case myCombo.Text
Case "Id"
Case "FirstName"....
End Select

Thank you very much
 
* José Flores said:
I have an object customer with many properties (id,
firstname, lastname, etc.)
I have a combobox with all properties name of my customer
object.
How can i directly access the property value of the
combobox selected item?
I mean i don't want to use:
Select Case myCombo.Text
Case "Id"
Case "FirstName"....
End Select

\\\
DirectCast(Me.ListBox1.SelectedItem, TheType).Member = ...
///
 
Back
Top