delphi4arab منتديات دلفي للعرب

نسخة كاملة : حل ‘ظهار رقم cles لحساب ccp في tedit.text لرقمين أخيرين
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
PHP كود :
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 

شكرا
(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  إلى نص