paulthepaddy
Well-known member
hi, i would like to call a funtion whos name is in a vairable.
VB.NET:
Dim Car_service As String
Private Sub ComboBox_Spray_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox_Spray.SelectedIndexChanged
Car_service = ("Spray_" & Me.ComboBox_Spray.Text)
end sub
Call spray_Standard [COLOR=red]'this is what i need to change standard is what comes from the combobox[/COLOR]
[COLOR=palegreen][COLOR=red]'[/COLOR][COLOR=red]but i would like to call the funtion depending on what the combobox.text was eg,
' if combobox.text was Parkingsensors i would like to call the function call spray_parkingSensors[/COLOR][/COLOR]
Private Sub Spray_Standard()
Price_Subtotal = 0
Price_Subtotal = (Damagecount * 65)
Car_Price_Subtotal.Value = Price_Subtotal
End Sub