كيف يمكن قلب النصوص مع الاسطر الاعلى يصبح اسفل والعكس
#4
ممتاز ياملك
هنا يحصل خطا عند استخدام TStringList
لماذا لا نستغني عن Object
كود :
procedure TForm1.BitBtn1Click(Sender: TObject); Var i, j, c: integer; s: String; t:TStringList ; begin Memo2.Clear; j := c ; t := TStringList.Create(); try t.Text :=Memo1.Text ; for i :=0 to (t.Count - 1)div 2 do begin t.Exchange(i, t.Count-c); s := t.Strings[i]; // Memo1.Text := t.Text ; inc(c); s := copy(s, 1, length(s) - 1); t.CommaText := s; s := t.Strings[0]; for j := t.Count - 1 Downto 1 Do s := s + ' ' + ListBox1.Items[j]; Memo2.Lines.Add(s + '.'); end; Memo2.Text := s ; // t.Text finally t.Free; end; end;
الرد


الردود في هذا الموضوع
كيف يمكن قلب النصوص مع الاسطر الاعلى يصبح اسفل والعكس - بواسطة cargem - 21-08-2011, 08:48 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم