Aşağıda ki kod buttonclick te çalışmıyor.
Kod: Tümünü seç
var
i:integer;
begin
for i := 0 to self.componentCount-1 do
if Self.Components[i] is TEdit then
if TEdit(Self.Components[i]).Focused then
TEdit(Self.Components[i]).text:=TEdit(Self.Components[i]).text+'1';
Kod: Tümünü seç
var
i:integer;
begin
if key=#13 then -------> form1.keypress;
for i := 0 to self.componentCount-1 do
if Self.Components[i] is TEdit then
if TEdit(Self.Components[i]).Focused then
TEdit(Self.Components[i]).text:=TEdit(Self.Components[i]).text+'1';
Nerede yanlış yapıyorum acaba?
iyi çalışmalar.