Тема: Програма розв'язування задач з фізики! Для учнів 7-го класу.

 
 
 
 
Привіт панове програмісти. Вирішив зробити під свій проект окрему тему. Можливо хтось хто зайде в неї буде мати вільний час та терпіння допомогти закінчити цю програму.
Є ось така процедура, яка перевіряє всі поля Edit, та якщо знаходить в них знак ' = ' то залежно від лівого та правого ComboBox
присвоює значення певної змінної іншій змінній, так як в (Мал. 3). Питання:
1) Як задати в ній цикл, щоб вона після першого (знаходження знаку ' = ') присвоєння, виходила з неї тавиконувала далі програму до наступного її виклику.
2) Після наступного її виклику потрібно щоб вона пропустила це поле Edit, і продовжувала в полях які ідуть нижче від попереднього поля Edit. І так далі.....
Наперед дякую всім хто відгукнеться!
procedure TForm1.Assignment;                                                 // Процедура дорівнює присвоєння
begin
 case ComboBox9.ItemIndex of
 0:   begin
      if Pos('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       4: t1 := t2;
       5: t1 := t3;
       6: t1 := t4;
       7: t1 := t5;
       8: t1 := t6;
       end;
      end;
      end;
 1:   begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       3: t2 := t1;
       5: t2 := t3;
       6: t2 := t4;
       7: t2 := t5;
       8: t2 := t6;
       end;
      end;
      end;
 2:   begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       3: t3 := t1;
       4: t3 := t2;
       6: t3 := t4;
       7: t3 := t5;
       8: t3 := t6;
       end;
      end;
      end;
 3:   begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       3: t4 := t1;
       4: t4 := t2;
       5: t4 := t3;
       7: t4 := t5;
       8: t4 := t6;
       end;
      end;
      end;
 4:   begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       3: t5 := t1;
       4: t5 := t2;
       5: t5 := t3;
       6: t5 := t4;
       8: t5 := t6;
       end;
      end;
      end;
 5:   begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       3: t6 := t1;
       4: t6 := t2;
       5: t6 := t3;
       6: t6 := t4;
       7: t6 := t5;
       end;
      end;
      end;
 6:   begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       6:  s1 := s2;
       7:  s1 := s3;
       8:  s1 := s4;
       9:  s1 := s5;
       10: s1 := s6;
       end;
      end;
      end;
 7:   begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       5:  s2 := s1;
       7:  s2 := s3;
       8:  s2 := s4;
       9:  s2 := s5;
       10: s2 := s6;
       end;
      end;
      end;
 8:   begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       5:  s3 := s1;
       6:  s3 := s2;
       8:  s3 := s4;
       9:  s3 := s5;
       10: s3 := s6;
       end;
      end;
      end;
 9:   begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       5:  s4 := s1;
       6:  s4 := s2;
       7:  s4 := s3;
       9:  s4 := s5;
       10: s4 := s6;
       end;
      end;
      end;
 10:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       5:  s5 := s1;
       6:  s5 := s2;
       7:  s5 := s3;
       8:  s5 := s4;
       10: s5 := s6;
       end;
      end;
      end;
 11:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       5: s6 := s1;
       6: s6 := s2;
       7: s6 := s3;
       8: s6 := s4;
       9: s6 := s5;
       end;
      end;
      end;
 12:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       16: v1 := v2;
       17: v1 := v3;
       18: v1 := v4;
       19: v1 := v5;
       20: v1 := v6;
       end;
      end;
      end;
 13:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       15: v2 := v1;
       17: v2 := v3;
       18: v2 := v4;
       19: v2 := v5;
       20: v2 := v6;
       end;
      end;
      end;
 14:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       15: v3 := v1;
       16: v3 := v2;
       18: v3 := v4;
       19: v3 := v5;
       20: v3 := v6;
       end;
      end;
      end;
 15:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       15: v4 := v1;
       16: v4 := v2;
       17: v4 := v3;
       19: v4 := v5;
       20: v4 := v6;
       end;
      end;
      end;
 16:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       15: v5 := v1;
       16: v5 := v2;
       17: v5 := v3;
       18: v5 := v4;
       20: v5 := v6;
       end;
      end;
      end;
 17:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       15: v6 := v1;
       16: v6 := v2;
       17: v6 := v3;
       18: v6 := v4;
       19: v6 := v5;
       end;
      end;
      end;
 18:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       6:  l1 := l2;
       7:  l1 := l3;
       8:  l1 := l4;
       9:  l1 := l5;
       10: l1 := l6;
       end;
      end;
      end;
 19:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       5:  l2 := l1;
       7:  l2 := l3;
       8:  l2 := l4;
       9:  l2 := l5;
       10: l2 := l6;
       end;
      end;
      end;
 20:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       5:  l3 := l1;
       6:  l3 := l2;
       8:  l3 := l4;
       9:  l3 := l5;
       10: l3 := l6;
       end;
      end;
      end;
 21:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       5:  l4 := l1;
       6:  l4 := l2;
       7:  l4 := l3;
       9:  l4 := l5;
       10: l4 := l6;
       end;
      end;
      end;
 22:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       5:  l5 := l1;
       6:  l5 := l2;
       7:  l5 := l3;
       8:  l5 := l4;
       10: l5 := l6;
       end;
      end;
      end;
 23:  begin
      if Pos ('=',Edit1.Text)<>0 then
      begin
       case ComboBox15.ItemIndex of
       5: l6 := l1;
       6: l6 := l2;
       7: l6 := l3;
       8: l6 := l4;
       9: l6 := l5;
       end;
      end;
      end;
 end;
 case ComboBox10.ItemIndex of
 0:   begin
      if Pos('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       4: t1 := t2;
       5: t1 := t3;
       6: t1 := t4;
       7: t1 := t5;
       8: t1 := t6;
       end;
      end;
      end;
 1:   begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       3: t2 := t1;
       5: t2 := t3;
       6: t2 := t4;
       7: t2 := t5;
       8: t2 := t6;
       end;
      end;
      end;
 2:   begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       3: t3 := t1;
       4: t3 := t2;
       6: t3 := t4;
       7: t3 := t5;
       8: t3 := t6;
       end;
      end;
      end;
 3:   begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       3: t4 := t1;
       4: t4 := t2;
       5: t4 := t3;
       7: t4 := t5;
       8: t4 := t6;
       end;
      end;
      end;
 4:   begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       3: t5 := t1;
       4: t5 := t2;
       5: t5 := t3;
       6: t5 := t4;
       8: t5 := t6;
       end;
      end;
      end;
 5:   begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       3: t6 := t1;
       4: t6 := t2;
       5: t6 := t3;
       6: t6 := t4;
       7: t6 := t5;
       end;
      end;
      end;
 6:   begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       6:  s1 := s2;
       7:  s1 := s3;
       8:  s1 := s4;
       9:  s1 := s5;
       10: s1 := s6;
       end;
      end;
      end;
 7:   begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       5:  s2 := s1;
       7:  s2 := s3;
       8:  s2 := s4;
       9:  s2 := s5;
       10: s2 := s6;
       end;
      end;
      end;
 8:   begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       5:  s3 := s1;
       6:  s3 := s2;
       8:  s3 := s4;
       9:  s3 := s5;
       10: s3 := s6;
       end;
      end;
      end;
 9:   begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       5:  s4 := s1;
       6:  s4 := s2;
       7:  s4 := s3;
       9:  s4 := s5;
       10: s4 := s6;
       end;
      end;
      end;
 10:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       5:  s5 := s1;
       6:  s5 := s2;
       7:  s5 := s3;
       8:  s5 := s4;
       10: s5 := s6;
       end;
      end;
      end;
 11:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       5: s6 := s1;
       6: s6 := s2;
       7: s6 := s3;
       8: s6 := s4;
       9: s6 := s5;
       end;
      end;
      end;
 12:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       16: v1 := v2;
       17: v1 := v3;
       18: v1 := v4;
       19: v1 := v5;
       20: v1 := v6;
       end;
      end;
      end;
 13:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       15: v2 := v1;
       17: v2 := v3;
       18: v2 := v4;
       19: v2 := v5;
       20: v2 := v6;
       end;
      end;
      end;
 14:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       15: v3 := v1;
       16: v3 := v2;
       18: v3 := v4;
       19: v3 := v5;
       20: v3 := v6;
       end;
      end;
      end;
 15:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       15: v4 := v1;
       16: v4 := v2;
       17: v4 := v3;
       19: v4 := v5;
       20: v4 := v6;
       end;
      end;
      end;
 16:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       15: v5 := v1;
       16: v5 := v2;
       17: v5 := v3;
       18: v5 := v4;
       20: v5 := v6;
       end;
      end;
      end;
 17:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       15: v6 := v1;
       16: v6 := v2;
       17: v6 := v3;
       18: v6 := v4;
       19: v6 := v5;
       end;
      end;
      end;
 18:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       6:  l1 := l2;
       7:  l1 := l3;
       8:  l1 := l4;
       9:  l1 := l5;
       10: l1 := l6;
       end;
      end;
      end;
 19:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       5:  l2 := l1;
       7:  l2 := l3;
       8:  l2 := l4;
       9:  l2 := l5;
       10: l2 := l6;
       end;
      end;
      end;
 20:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       5:  l3 := l1;
       6:  l3 := l2;
       8:  l3 := l4;
       9:  l3 := l5;
       10: l3 := l6;
       end;
      end;
      end;
 21:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       5:  l4 := l1;
       6:  l4 := l2;
       7:  l4 := l3;
       9:  l4 := l5;
       10: l4 := l6;
       end;
      end;
      end;
 22:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       5:  l5 := l1;
       6:  l5 := l2;
       7:  l5 := l3;
       8:  l5 := l4;
       10: l5 := l6;
       end;
      end;
      end;
 23:  begin
      if Pos ('=',Edit2.Text)<>0 then
      begin
       case ComboBox16.ItemIndex of
       5: l6 := l1;
       6: l6 := l2;
       7: l6 := l3;
       8: l6 := l4;
       9: l6 := l5;
       end;
      end;
      end;
 end;
 case ComboBox11.ItemIndex of
 0:   begin
      if Pos('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       4: t1 := t2;
       5: t1 := t3;
       6: t1 := t4;
       7: t1 := t5;
       8: t1 := t6;
       end;
      end;
      end;
 1:   begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       3: t2 := t1;
       5: t2 := t3;
       6: t2 := t4;
       7: t2 := t5;
       8: t2 := t6;
       end;
      end;
      end;
 2:   begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       3: t3 := t1;
       4: t3 := t2;
       6: t3 := t4;
       7: t3 := t5;
       8: t3 := t6;
       end;
      end;
      end;
 3:   begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       3: t4 := t1;
       4: t4 := t2;
       5: t4 := t3;
       7: t4 := t5;
       8: t4 := t6;
       end;
      end;
      end;
 4:   begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       3: t5 := t1;
       4: t5 := t2;
       5: t5 := t3;
       6: t5 := t4;
       8: t5 := t6;
       end;
      end;
      end;
 5:   begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       3: t6 := t1;
       4: t6 := t2;
       5: t6 := t3;
       6: t6 := t4;
       7: t6 := t5;
       end;
      end;
      end;
 6:   begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       6:  s1 := s2;
       7:  s1 := s3;
       8:  s1 := s4;
       9:  s1 := s5;
       10: s1 := s6;
       end;
      end;
      end;
 7:   begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       5:  s2 := s1;
       7:  s2 := s3;
       8:  s2 := s4;
       9:  s2 := s5;
       10: s2 := s6;
       end;
      end;
      end;
 8:   begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       5:  s3 := s1;
       6:  s3 := s2;
       8:  s3 := s4;
       9:  s3 := s5;
       10: s3 := s6;
       end;
      end;
      end;
 9:   begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       5:  s4 := s1;
       6:  s4 := s2;
       7:  s4 := s3;
       9:  s4 := s5;
       10: s4 := s6;
       end;
      end;
      end;
 10:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       5:  s5 := s1;
       6:  s5 := s2;
       7:  s5 := s3;
       8:  s5 := s4;
       10: s5 := s6;
       end;
      end;
      end;
 11:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       5: s6 := s1;
       6: s6 := s2;
       7: s6 := s3;
       8: s6 := s4;
       9: s6 := s5;
       end;
      end;
      end;
 12:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       16: v1 := v2;
       17: v1 := v3;
       18: v1 := v4;
       19: v1 := v5;
       20: v1 := v6;
       end;
      end;
      end;
 13:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       15: v2 := v1;
       17: v2 := v3;
       18: v2 := v4;
       19: v2 := v5;
       20: v2 := v6;
       end;
      end;
      end;
 14:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       15: v3 := v1;
       16: v3 := v2;
       18: v3 := v4;
       19: v3 := v5;
       20: v3 := v6;
       end;
      end;
      end;
 15:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       15: v4 := v1;
       16: v4 := v2;
       17: v4 := v3;
       19: v4 := v5;
       20: v4 := v6;
       end;
      end;
      end;
 16:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       15: v5 := v1;
       16: v5 := v2;
       17: v5 := v3;
       18: v5 := v4;
       20: v5 := v6;
       end;
      end;
      end;
 17:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       15: v6 := v1;
       16: v6 := v2;
       17: v6 := v3;
       18: v6 := v4;
       19: v6 := v5;
       end;
      end;
      end;
 18:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       6:  l1 := l2;
       7:  l1 := l3;
       8:  l1 := l4;
       9:  l1 := l5;
       10: l1 := l6;
       end;
      end;
      end;
 19:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       5:  l2 := l1;
       7:  l2 := l3;
       8:  l2 := l4;
       9:  l2 := l5;
       10: l2 := l6;
       end;
      end;
      end;
 20:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       5:  l3 := l1;
       6:  l3 := l2;
       8:  l3 := l4;
       9:  l3 := l5;
       10: l3 := l6;
       end;
      end;
      end;
 21:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       5:  l4 := l1;
       6:  l4 := l2;
       7:  l4 := l3;
       9:  l4 := l5;
       10: l4 := l6;
       end;
      end;
      end;
 22:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       5:  l5 := l1;
       6:  l5 := l2;
       7:  l5 := l3;
       8:  l5 := l4;
       10: l5 := l6;
       end;
      end;
      end;
 23:  begin
      if Pos ('=',Edit3.Text)<>0 then
      begin
       case ComboBox17.ItemIndex of
       5: l6 := l1;
       6: l6 := l2;
       7: l6 := l3;
       8: l6 := l4;
       9: l6 := l5;
       end;
      end;
      end;
 end;
 case ComboBox12.ItemIndex of
 0:   begin
      if Pos('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       4: t1 := t2;
       5: t1 := t3;
       6: t1 := t4;
       7: t1 := t5;
       8: t1 := t6;
       end;
      end;
      end;
 1:   begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       3: t2 := t1;
       5: t2 := t3;
       6: t2 := t4;
       7: t2 := t5;
       8: t2 := t6;
       end;
      end;
      end;
 2:   begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       3: t3 := t1;
       4: t3 := t2;
       6: t3 := t4;
       7: t3 := t5;
       8: t3 := t6;
       end;
      end;
      end;
 3:   begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       3: t4 := t1;
       4: t4 := t2;
       5: t4 := t3;
       7: t4 := t5;
       8: t4 := t6;
       end;
      end;
      end;
 4:   begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       3: t5 := t1;
       4: t5 := t2;
       5: t5 := t3;
       6: t5 := t4;
       8: t5 := t6;
       end;
      end;
      end;
 5:   begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       3: t6 := t1;
       4: t6 := t2;
       5: t6 := t3;
       6: t6 := t4;
       7: t6 := t5;
       end;
      end;
      end;
 6:   begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       6:  s1 := s2;
       7:  s1 := s3;
       8:  s1 := s4;
       9:  s1 := s5;
       10: s1 := s6;
       end;
      end;
      end;
 7:   begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       5:  s2 := s1;
       7:  s2 := s3;
       8:  s2 := s4;
       9:  s2 := s5;
       10: s2 := s6;
       end;
      end;
      end;
 8:   begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       5:  s3 := s1;
       6:  s3 := s2;
       8:  s3 := s4;
       9:  s3 := s5;
       10: s3 := s6;
       end;
      end;
      end;
 9:   begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       5:  s4 := s1;
       6:  s4 := s2;
       7:  s4 := s3;
       9:  s4 := s5;
       10: s4 := s6;
       end;
      end;
      end;
 10:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       5:  s5 := s1;
       6:  s5 := s2;
       7:  s5 := s3;
       8:  s5 := s4;
       10: s5 := s6;
       end;
      end;
      end;
 11:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       5: s6 := s1;
       6: s6 := s2;
       7: s6 := s3;
       8: s6 := s4;
       9: s6 := s5;
       end;
      end;
      end;
 12:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       16: v1 := v2;
       17: v1 := v3;
       18: v1 := v4;
       19: v1 := v5;
       20: v1 := v6;
       end;
      end;
      end;
 13:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       15: v2 := v1;
       17: v2 := v3;
       18: v2 := v4;
       19: v2 := v5;
       20: v2 := v6;
       end;
      end;
      end;
 14:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       15: v3 := v1;
       16: v3 := v2;
       18: v3 := v4;
       19: v3 := v5;
       20: v3 := v6;
       end;
      end;
      end;
 15:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       15: v4 := v1;
       16: v4 := v2;
       17: v4 := v3;
       19: v4 := v5;
       20: v4 := v6;
       end;
      end;
      end;
 16:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       15: v5 := v1;
       16: v5 := v2;
       17: v5 := v3;
       18: v5 := v4;
       20: v5 := v6;
       end;
      end;
      end;
 17:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       15: v6 := v1;
       16: v6 := v2;
       17: v6 := v3;
       18: v6 := v4;
       19: v6 := v5;
       end;
      end;
      end;
 18:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       6:  l1 := l2;
       7:  l1 := l3;
       8:  l1 := l4;
       9:  l1 := l5;
       10: l1 := l6;
       end;
      end;
      end;
 19:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       5:  l2 := l1;
       7:  l2 := l3;
       8:  l2 := l4;
       9:  l2 := l5;
       10: l2 := l6;
       end;
      end;
      end;
 20:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       5:  l3 := l1;
       6:  l3 := l2;
       8:  l3 := l4;
       9:  l3 := l5;
       10: l3 := l6;
       end;
      end;
      end;
 21:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       5:  l4 := l1;
       6:  l4 := l2;
       7:  l4 := l3;
       9:  l4 := l5;
       10: l4 := l6;
       end;
      end;
      end;
 22:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       5:  l5 := l1;
       6:  l5 := l2;
       7:  l5 := l3;
       8:  l5 := l4;
       10: l5 := l6;
       end;
      end;
      end;
 23:  begin
      if Pos ('=',Edit4.Text)<>0 then
      begin
       case ComboBox18.ItemIndex of
       5: l6 := l1;
       6: l6 := l2;
       7: l6 := l3;
       8: l6 := l4;
       9: l6 := l5;
       end;
      end;
      end;
 end;
 case ComboBox13.ItemIndex of
 0:   begin
      if Pos('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       4: t1 := t2;
       5: t1 := t3;
       6: t1 := t4;
       7: t1 := t5;
       8: t1 := t6;
       end;
      end;
      end;
 1:   begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       3: t2 := t1;
       5: t2 := t3;
       6: t2 := t4;
       7: t2 := t5;
       8: t2 := t6;
       end;
      end;
      end;
 2:   begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       3: t3 := t1;
       4: t3 := t2;
       6: t3 := t4;
       7: t3 := t5;
       8: t3 := t6;
       end;
      end;
      end;
 3:   begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       3: t4 := t1;
       4: t4 := t2;
       5: t4 := t3;
       7: t4 := t5;
       8: t4 := t6;
       end;
      end;
      end;
 4:   begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       3: t5 := t1;
       4: t5 := t2;
       5: t5 := t3;
       6: t5 := t4;
       8: t5 := t6;
       end;
      end;
      end;
 5:   begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       3: t6 := t1;
       4: t6 := t2;
       5: t6 := t3;
       6: t6 := t4;
       7: t6 := t5;
       end;
      end;
      end;
 6:   begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       6:  s1 := s2;
       7:  s1 := s3;
       8:  s1 := s4;
       9:  s1 := s5;
       10: s1 := s6;
       end;
      end;
      end;
 7:   begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       5:  s2 := s1;
       7:  s2 := s3;
       8:  s2 := s4;
       9:  s2 := s5;
       10: s2 := s6;
       end;
      end;
      end;
 8:   begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       5:  s3 := s1;
       6:  s3 := s2;
       8:  s3 := s4;
       9:  s3 := s5;
       10: s3 := s6;
       end;
      end;
      end;
 9:   begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       5:  s4 := s1;
       6:  s4 := s2;
       7:  s4 := s3;
       9:  s4 := s5;
       10: s4 := s6;
       end;
      end;
      end;
 10:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       5:  s5 := s1;
       6:  s5 := s2;
       7:  s5 := s3;
       8:  s5 := s4;
       10: s5 := s6;
       end;
      end;
      end;
 11:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       5: s6 := s1;
       6: s6 := s2;
       7: s6 := s3;
       8: s6 := s4;
       9: s6 := s5;
       end;
      end;
      end;
 12:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       16: v1 := v2;
       17: v1 := v3;
       18: v1 := v4;
       19: v1 := v5;
       20: v1 := v6;
       end;
      end;
      end;
 13:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       15: v2 := v1;
       17: v2 := v3;
       18: v2 := v4;
       19: v2 := v5;
       20: v2 := v6;
       end;
      end;
      end;
 14:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       15: v3 := v1;
       16: v3 := v2;
       18: v3 := v4;
       19: v3 := v5;
       20: v3 := v6;
       end;
      end;
      end;
 15:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       15: v4 := v1;
       16: v4 := v2;
       17: v4 := v3;
       19: v4 := v5;
       20: v4 := v6;
       end;
      end;
      end;
 16:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       15: v5 := v1;
       16: v5 := v2;
       17: v5 := v3;
       18: v5 := v4;
       20: v5 := v6;
       end;
      end;
      end;
 17:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       15: v6 := v1;
       16: v6 := v2;
       17: v6 := v3;
       18: v6 := v4;
       19: v6 := v5;
       end;
      end;
      end;
 18:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       6:  l1 := l2;
       7:  l1 := l3;
       8:  l1 := l4;
       9:  l1 := l5;
       10: l1 := l6;
       end;
      end;
      end;
 19:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       5:  l2 := l1;
       7:  l2 := l3;
       8:  l2 := l4;
       9:  l2 := l5;
       10: l2 := l6;
       end;
      end;
      end;
 20:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       5:  l3 := l1;
       6:  l3 := l2;
       8:  l3 := l4;
       9:  l3 := l5;
       10: l3 := l6;
       end;
      end;
      end;
 21:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       5:  l4 := l1;
       6:  l4 := l2;
       7:  l4 := l3;
       9:  l4 := l5;
       10: l4 := l6;
       end;
      end;
      end;
 22:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       5:  l5 := l1;
       6:  l5 := l2;
       7:  l5 := l3;
       8:  l5 := l4;
       10: l5 := l6;
       end;
      end;
      end;
 23:  begin
      if Pos ('=',Edit5.Text)<>0 then
      begin
       case ComboBox19.ItemIndex of
       5: l6 := l1;
       6: l6 := l2;
       7: l6 := l3;
       8: l6 := l4;
       9: l6 := l5;
       end;
      end;
      end;
 end;
 case ComboBox14.ItemIndex of
 0:   begin
      if Pos('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       4: t1 := t2;
       5: t1 := t3;
       6: t1 := t4;
       7: t1 := t5;
       8: t1 := t6;
       end;
      end;
      end;
 1:   begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       3: t2 := t1;
       5: t2 := t3;
       6: t2 := t4;
       7: t2 := t5;
       8: t2 := t6;
       end;
      end;
      end;
 2:   begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       3: t3 := t1;
       4: t3 := t2;
       6: t3 := t4;
       7: t3 := t5;
       8: t3 := t6;
       end;
      end;
      end;
 3:   begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       3: t4 := t1;
       4: t4 := t2;
       5: t4 := t3;
       7: t4 := t5;
       8: t4 := t6;
       end;
      end;
      end;
 4:   begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       3: t5 := t1;
       4: t5 := t2;
       5: t5 := t3;
       6: t5 := t4;
       8: t5 := t6;
       end;
      end;
      end;
 5:   begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       3: t6 := t1;
       4: t6 := t2;
       5: t6 := t3;
       6: t6 := t4;
       7: t6 := t5;
       end;
      end;
      end;
 6:   begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       6:  s1 := s2;
       7:  s1 := s3;
       8:  s1 := s4;
       9:  s1 := s5;
       10: s1 := s6;
       end;
      end;
      end;
 7:   begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       5:  s2 := s1;
       7:  s2 := s3;
       8:  s2 := s4;
       9:  s2 := s5;
       10: s2 := s6;
       end;
      end;
      end;
 8:   begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       5:  s3 := s1;
       6:  s3 := s2;
       8:  s3 := s4;
       9:  s3 := s5;
       10: s3 := s6;
       end;
      end;
      end;
 9:   begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       5:  s4 := s1;
       6:  s4 := s2;
       7:  s4 := s3;
       9:  s4 := s5;
       10: s4 := s6;
       end;
      end;
      end;
 10:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       5:  s5 := s1;
       6:  s5 := s2;
       7:  s5 := s3;
       8:  s5 := s4;
       10: s5 := s6;
       end;
      end;
      end;
 11:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       5: s6 := s1;
       6: s6 := s2;
       7: s6 := s3;
       8: s6 := s4;
       9: s6 := s5;
       end;
      end;
      end;
 12:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       16: v1 := v2;
       17: v1 := v3;
       18: v1 := v4;
       19: v1 := v5;
       20: v1 := v6;
       end;
      end;
      end;
 13:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       15: v2 := v1;
       17: v2 := v3;
       18: v2 := v4;
       19: v2 := v5;
       20: v2 := v6;
       end;
      end;
      end;
 14:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       15: v3 := v1;
       16: v3 := v2;
       18: v3 := v4;
       19: v3 := v5;
       20: v3 := v6;
       end;
      end;
      end;
 15:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       15: v4 := v1;
       16: v4 := v2;
       17: v4 := v3;
       19: v4 := v5;
       20: v4 := v6;
       end;
      end;
      end;
 16:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       15: v5 := v1;
       16: v5 := v2;
       17: v5 := v3;
       18: v5 := v4;
       20: v5 := v6;
       end;
      end;
      end;
 17:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       15: v6 := v1;
       16: v6 := v2;
       17: v6 := v3;
       18: v6 := v4;
       19: v6 := v5;
       end;
      end;
      end;
 18:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       6:  l1 := l2;
       7:  l1 := l3;
       8:  l1 := l4;
       9:  l1 := l5;
       10: l1 := l6;
       end;
      end;
      end;
 19:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       5:  l2 := l1;
       7:  l2 := l3;
       8:  l2 := l4;
       9:  l2 := l5;
       10: l2 := l6;
       end;
      end;
      end;
 20:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       5:  l3 := l1;
       6:  l3 := l2;
       8:  l3 := l4;
       9:  l3 := l5;
       10: l3 := l6;
       end;
      end;
      end;
 21:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       5:  l4 := l1;
       6:  l4 := l2;
       7:  l4 := l3;
       9:  l4 := l5;
       10: l4 := l6;
       end;
      end;
      end;
 22:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       5:  l5 := l1;
       6:  l5 := l2;
       7:  l5 := l3;
       8:  l5 := l4;
       10: l5 := l6;
       end;
      end;
      end;
 23:  begin
      if Pos ('=',Edit6.Text)<>0 then
      begin
       case ComboBox20.ItemIndex of
       5: l6 := l1;
       6: l6 := l2;
       7: l6 := l3;
       8: l6 := l4;
       9: l6 := l5;
       end;
      end;
      end;
 end;
end;Посилання на код який я розробляв спершу:
https://drive.google.com/open?id=1PvPMT … 6nxxXN2tSG
Посилання на код який я буду розробляти:
https://drive.google.com/open?id=1inipr … chGlmjMAx5




