[Lazarus] "Rename identifier" issues

Frederic Da Vitoria davitofrg at gmail.com
Thu Nov 6 21:21:55 CET 2014


Hello

I currently use Lazarus 1.2.6 / fpc 2.6.4. I have 2 issues with it

First of all, I believe the message is slightly wrong: instead of "Choose a
name for the new component", it should be "Choose a new name for the
component".

Here is my second issue: In a small project with only one Form, I decided
at one point to rename the standard TForm1 to TMainForm and the variable
Form1 to MainForm (using the F2 shortcut in both circumstances). The
renaming apparently proceeded correctly and fpc compiled my application
without problem. But when I ran it, I got an EResNotFound with the message
"Form resource TMainForm not found (...)". I then discovered that in
TMainForm.lfm still contained "object Form1: TForm1". Of course, simply
renaming the component Form1 to MainForm solved the issue. In this
situation, shouldn't renaming the variable with F2 also rename the
component or at least suggest to do it?

-- 
Frederic Da Vitoria
(davitof)

Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141106/e1f89897/attachment-0002.html>


More information about the Lazarus mailing list