13-07-2020, 04:24 PM
(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 إلى نص


![[-]](https://delphi4arab.net/forum/D4A2020/collapse.png)