Identical components on Delphi form?
[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]
Posted by Roeland on December 23, 2002:
How can I change the caption of several labels at the same time, after entering something in an edit-box? Of course, I can do it as follows:
Label1.Caption := Edit1.text;
Label2.Caption := Edit1.text;
// and so on...
But can't I do this by putting the SAME label several times on the Delphi form? Because
otherwise, if I want to change the text at 100 places at the same moment, I have to write
of code. So the question is: can there be two exactly identical components on a form?
Related Articles and Replies:
[ DelphiLand FAQ ] [ Delphi Tutorials ]