Just learning Delphi, I have a button and a text box on a form,
in the button click procedure this works ok,
edit1.Text := '123456';
but i want to put it in a procedure to call from other places, but
procedure tempit();
begin
Form1.edit1.Text := '123456';
end;
in the same unit doesn't work.
Why is this, and why do I need the form1. when it's in the same unit,
Thanks,
Len
in the button click procedure this works ok,
edit1.Text := '123456';
but i want to put it in a procedure to call from other places, but
procedure tempit();
begin
Form1.edit1.Text := '123456';
end;
in the same unit doesn't work.
Why is this, and why do I need the form1. when it's in the same unit,
Thanks,
Len