Hi
myFunction are supposed to display two equal messages, but it doesn’t. Why???
myFunction(temp: TEdit) : string;
var
Obj : TObject;
E : TEdit;
begin
Obj := FindComponent(temp.Name);
E := (Obj as TEdit);
messagedlg(temp.text,mtInformation,[mbOK],0);
messagedlg(E.Text,mtInformation,[mbOK],0);
end;
I have multiple forms and "temp" is created at run-time.
-Kudel
myFunction are supposed to display two equal messages, but it doesn’t. Why???
myFunction(temp: TEdit) : string;
var
Obj : TObject;
E : TEdit;
begin
Obj := FindComponent(temp.Name);
E := (Obj as TEdit);
messagedlg(temp.text,mtInformation,[mbOK],0);
messagedlg(E.Text,mtInformation,[mbOK],0);
end;
I have multiple forms and "temp" is created at run-time.
-Kudel