حل ‘ظهار رقم cles لحساب ccp في tedit.text لرقمين أخيرين
#2
(13-07-2020, 02:21 PM)dz-amine كتب : ccp := Edit9.GetTextLen;
  if (ccp <=10) then
  Code := 0;
  Coeff := 4;
  for i  := CCP downto 1 do
  begin
    Code := Code + StrToInt(edit9.text[i]) * Coeff;
    Inc(Coeff);
    end;
  edit10.Text:=inttostr(StrToInt(copy (code,1,2) ));       --------هنا مشكلة compliation   e2008 type incomptaible 



اعمل على delphi10.3  rio communoty edition 

شكرا

الدالة copy تعمل مع النصوص ، حول code  إلى نص
[-] كل من 1 user says قال شكرا ل larbiparadox على المشاركة المفيدة
  • dz-amine
الرد


الردود في هذا الموضوع
RE: حل ‘ظهار رقم cles لحساب ccp في tedit.text لرقمين أخيرين - بواسطة larbiparadox - 13-07-2020, 04:24 PM

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


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