When there is a count in the main loop, you need to search for 3 arrays, which are announced earlier. If the element was found already in the first nested loop, then the search for the next two still happens. How to prevent this and move to the next element of the outer loop?
For example:
for i := 0 to length(ar_mas) do begin for j := 0 to length(k_mas) do begin <Π΄Π΅ΠΉΡΡΠ²ΠΈΠ΅> break; end; for j := 0 to length(raz_mas) do begin <Π΄Π΅ΠΉΡΡΠ²ΠΈΠ΅> break; end; for j := 0 to length(id_mas) do begin <Π΄Π΅ΠΉΡΡΠ²ΠΈΠ΅> break; end; end;
In <action>, nothing substantial happens, except for writing to a stringGrid and searching in arrays