تحيه طيبه
لدى قائمه كبيره باسماء الطلاب والدرجات
مئات الطلاب ويذيد
هل يمكن اختصار هذاالكود
Private Sub Combo1_Click() If Combo1.Text = "احمد" Then Label1.Caption = "4585" Else If Combo1.Text = "على" Then Label1.Caption = "4212" Else If Combo1.Text = "ابراهيم" Then Label1.Caption = "8555" Else If Combo1.Text = "جمال" Then Label1.Caption = "1114" Else If Combo1.Text = "كريم" Then Label1.Caption = "4115" Else If Combo1.Text = "عزت" Then Label1.Caption = "78559" Else If Combo1.Text = "علاء" Then Label1.Caption = "3389" Else If Combo1.Text = "وائل" Then Label1.Caption = "8954" Else If Combo1.Text = "هانى" Then Label1.Caption = "2245" Else If Combo1.Text = "مروان" Then Label1.Caption = "8625" End If End If End If End If End If End If End If End If End If End If End Sub
المثال بالمرفقات

