30-01-2021, 09:10 PM
شكرا جزيلا لمساعدتكم [size=small]اخواني الاكارم [/size]
لم تحل المشكلة بعد ..
![[صورة: 479183673.jpg]](https://www2.0zz0.com/2021/01/30/23/479183673.jpg)
ما ابحث عنه هو كتابة الاسم المكرر مرة واحد وذكر كم مرة تكرر
![[صورة: 479183673.jpg]](https://www2.0zz0.com/2021/01/30/23/479183673.jpg)
(31-01-2021, 08:32 AM)FiREWORKS كتب : [ -> ]الملف التنفيذي المرفق في هذا الموضوع مصاب بــ Virus:Win32/Induc.Aشكرا للتنبه اخي ع.


(31-01-2021, 07:33 PM)ALG2009 كتب : [ -> ]لقد قمت بحذف الملف الذي حملته أعطاني هذه الرسالة عند فتح الدلفي
هل أقوم بحذف الدلفي
عندما اريد إختيار قرص لذهاب إلى مشروع يتشنج الجهاز
وعند الدخول من السايف مود النمط المحمي
Var
NN: Boolean;
Max, i,j,k,m : integer;
St: String;
begin
ListBox1.Clear;
Max:= StringGrid1.RowCount-1;
For i:=1 to Max Do begin
K:=1;NN:=False;
For j:=i+1 to Max Do
if StringGrid1.Cells[1, i]=StringGrid1.Cells[1, j] then inc(k);
if K>1 then begin
For m:=0 to ListBox1.Items.Count-1 do
if copy(ListBox1.Items[m],1,pos('=',ListBox1.Items[m])-1)=StringGrid1.Cells[1,i] then NN:=True;
if not NN then ListBox1.Items.Add(StringGrid1.Cells[1,i]+'='+IntToStr(k));
end;
end;
//////////////////////////////////////
ListBox2.Clear;
For i:=1 to Max Do begin
K:=1;NN:=False;
For j:=i+1 to Max Do
if StringGrid1.Cells[3, i]=StringGrid1.Cells[3, j] then inc(k);
if K>1 then begin
For m:=0 to ListBox2.Items.Count-1 do
if copy(ListBox2.Items[m],1,pos('=',ListBox2.Items[m])-1)=StringGrid1.Cells[3,i] then NN:=True;
if not NN then ListBox2.Items.Add(StringGrid1.Cells[3,i]+'='+IntToStr(k));
end;
end;
end;