1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30:
| procedure ordnen; var x,l,y,n: integer; t: string; begin x:=Form2.StringGrid1.RowCount-2; l:=0; repeat Form2.Memo1.Lines[l]:=Form2.StringGrid1.Cells[0,l]+'|1|'+Form2.StringGrid1.Cells[1,l]+'|2|'+Form2.StringGrid1.Cells[2,l]+'|3|'+Form2.StringGrid1.Cells[3,l]+'|4|'+Form2.StringGrid1.Cells[4,l]+'|5|'+Form2.StringGrid1.Cells[5,l]+'|6|'+Form2.StringGrid1.Cells[6,l]+'|7|'+Form2.StringGrid1.Cells[7,l]+'|8|'+Form2.StringGrid1.Cells[8,l]; l:=l+1; until l=x; Form2.ListBox1.Items.Add(Form2.Memo1.Text); Form2.ListBox1.Sorted:=true; Form2.Memo1.Clear; Form2.Memo1.Text:=Form2.ListBox1.Items.Text; y:=Form2.Memo1.Lines.Count-2; n:=1; repeat t:=Form2.Memo1.Lines[n]; Form2.StringGrid1.Cells[0,n]:=copy(t,1,pos(t,'|1|')); Form2.StringGrid1.Cells[1,n]:=copy(t,pos(t,'|1|'),pos(t,'|2|')); Form2.StringGrid1.Cells[2,n]:=copy(t,pos(t,'|2|'),pos(t,'|3|')); Form2.StringGrid1.Cells[3,n]:=copy(t,pos(t,'|3|'),pos(t,'|4|')); Form2.StringGrid1.Cells[4,n]:=copy(t,pos(t,'|4|'),pos(t,'|5|')); Form2.StringGrid1.Cells[5,n]:=copy(t,pos(t,'|5|'),pos(t,'|6|')); Form2.StringGrid1.Cells[6,n]:=copy(t,pos(t,'|6|'),pos(t,'|7|')); Form2.StringGrid1.Cells[7,n]:=copy(t,pos(t,'|7|'),pos(t,'|8|')); Form2.StringGrid1.Cells[7,n]:=copy(t,pos(t,'|8|'),length(t)-pos(t,'|8|')); n:=n+1; until n=y; end; |