<div dir="ltr"><div dir="ltr"><div>Yes, that's right. </div><div><br></div><div>My coworkers reported that the same occurs when renaming controls/components. It's renamed at LFM file, but not in PAS file. No reported exception when deleting/renaming.</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Em qui, 25 de out de 2018 às 11:07, Vojtěch Čihák <<a href="mailto:vojtech.cihak@atlas.cz">vojtech.cihak@atlas.cz</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p style="padding:0 0 0 0;margin:0 0 0 0">Hi,</p>

<p style="padding:0 0 0 0;margin:0 0 0 0"> </p>

<p style="padding:0 0 0 0;margin:0 0 0 0">do you mean that you add control on the form (let's say Button1), then you remove it (in designer) and line "Button1: TButton;" remains in source editor?</p>

<p style="padding:0 0 0 0;margin:0 0 0 0"> </p>

<p style="padding:0 0 0 0;margin:0 0 0 0">V.</p>

<p style="padding:0 0 0 0;margin:0 0 0 0">______________________________________________________________<br>
> Od: "Fabio Luis Girardi via Lazarus" <<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a>><br>
> Komu: "Lazarus mailing list" <<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a>><br>
> Datum: 25.10.2018 15:09<br>
> Předmět: [Lazarus] Remove unmatched vars in published<br>
></p>

<div dir="ltr">
<div dir="ltr">Hi all!
<div>
<div>Lazarus has some feature, to remove all unmatched variable names (on published of class, specially on TForm class and it's descendants) that don't have a control or component with the same name?</div>
<div>I'm working with big forms (process screens) and my coworkers are deleting some controls, but sometimes, Lazarus don't remove the variable. This behavior leads to some errors, like access violation, due access to a nil variable that still is referenced in code, but that is not created by the LFM reader (because it doesn't exist). If the variable is removed at the moment that the control is being deleted (or before save form) this erros will be filtered at compile time.</div>
-- <br>

<div class="m_-6309437432241144611gmail_signature" dir="ltr">The best regards,<br>
<br>
Fabio Luis Girardi<br>
PascalSCADA Project<br>
<a href="http://sourceforge.net/projects/pascalscada" target="_blank">http://sourceforge.net/projects/pascalscada</a><br>
<a href="http://www.pascalscada.com" target="_blank">http://www.pascalscada.com</a></div>
</div>
</div>
</div>
<br>
 <br>
 ----------<br>
 <br>
 -- <br>
 _______________________________________________<br>
 Lazarus mailing list<br>
 <a href="mailto:Lazarus@lists.lazarus-ide.org" target="_blank">Lazarus@lists.lazarus-ide.org</a><br>
 <a href="https://lists.lazarus-ide.org/listinfo/lazarus" target="_blank">https://lists.lazarus-ide.org/listinfo/lazarus</a><br>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">The best regards,<br><br>Fabio Luis Girardi<br>PascalSCADA Project<br><a href="http://sourceforge.net/projects/pascalscada" target="_blank">http://sourceforge.net/projects/pascalscada</a><br><a href="http://www.pascalscada.com" target="_blank">http://www.pascalscada.com</a></div>