I've just make some like that:<br><br>for i := 0 to 10 do<br>begin<br> MenuItem := TMenuItem.Create(Self);<br> MenuItem.Caption := 'tst ' + IntToStr(i);<br> PopMenu.Add(MenuItem);<br> ShowMessage(MenuItem.Name);<br>
end;<br><br>Despite the MenuItem is created in the PopMenu, the ShowMessage is showing blank.<br><br>How can a TComponent be created with the Name being blank "".<br>How can various TComponent being with the same blank Name "".<br>
<br>Att.<br>Everton Vieira.<br>