<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 18 June 2013 17:59, Mattias Gaertner <span dir="ltr"><<a href="mailto:nc-gaertnma@netcologne.de" target="_blank">nc-gaertnma@netcologne.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, 18 Jun 2013 17:42:58 +0100<br>
"vfclists ." <<a href="mailto:vfclists@gmail.com">vfclists@gmail.com</a>> wrote:<br>
<br>
> On 18 June 2013 13:20, Mattias Gaertner <<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>> wrote:<br>
><br>
> ><br>
> ><br>
> > > "vfclists ." <<a href="mailto:vfclists@gmail.com">vfclists@gmail.com</a>> hat am 18. Juni 2013 um 13:29<br>
> > geschrieben:<br>
> > ><br>
> > ><br>
> > > Does Lazarus give default names to components created at runtime?<br>
> ><br>
> > No. Default is ''.<br>
> ><br>
> > Mattias<br>
> ><br>
> ><br>
> Is there function in the LCL that can suggest or create a name for new<br>
> component, like in the IDE that creates a name from the component type and<br>
> an integer?<br>
<br>
</span>The IDE one is a bit more complicated than that and it is pretty IDE<br>
specific, so it is not in the LCL.<br>
There are CreateFirstIdentifier and CreateNextIdentifier in<br>
LCLProc. Maybe they can help you.<br>
<div class="HOEnZb"><div class="h5"><br>
Mattias<br>
<br>
<br></div></div></blockquote><div><br></div><div>I have checked CreateFirstIdentifier and CreateNextIdentifier and they appear to fit the bill , but a comment in the source code says they have been deprecated in favour of some new procedures in LazUtils.LazUTF8 which I can't find.</div><div><br></div><div>Do you have some idea what the replacement procedures are?</div><div><br></div><div><br></div></div><br clear="all"><div><br></div>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a>
</div></div>