<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Tom,</p>
<p>I made transition from Delphi about 9 years ago and never looked
back. Yes, there are some conceptual differences, especially in
the way the IDE works and which you have to get your head around
but, generally, the problems are to do with the occasional name
change for library functions, or the need to include a different
mix of units and these can usually be resolved quickly at compile
time.</p>
<p>Looking at your comments, I am trying to work out where you are
going wrong. Further down the EMail, you seem to be tripping over
problems with which units to include. Expect this as a one-off
cost of moving from Delphi to Lazarus. The easiest way of
resolving the problem with LCL objects is to just drop another
copy of the object on the form, save the form and then delete the
new object. The effect is to add the missing unit to the uses
clause.<br>
</p>
<p>EClassNotFound is an odd one. This is a run time error in the
streaming system - which is very similar to Delphi's streaming
system. It suggests that you have somehow managed to include a
.lfm file that includes a reference to a TButton, while the
corresponding .pas has lost the Form's reference to the button.</p>
<p>e.g. a line such as <br>
</p>
<p>FButton1: TButton;<br>
</p>
<p>is missing. I would search the .pas file for a match on
"TButton".</p>
<p>This can be the result of a simple "fat finger" error deleting a
line by mistake - I have done that myself, but normally this
results in an error message that tells you that the form reference
is missing. However, if this was the only reference and stdctrls
is not otherwise linked in then perhaps the error you are seeing
is the result.<br>
</p>
<p>Referring to your point about Delphi /lib, your problem here may
be the difference between Delphi and Lazarus packages.</p>
<p>It's probably best to think of Lazarus packages as compile time
conveniences rather than as code libraries that are nicely
packaged together in a single file. When you create a GUI
application in Lazarus, you automatically get the LCL package
"added" to you project. Its compiled units path then gets included
in the Project's compiler and linker search paths. The same thing
happens when you include a component in a third party package. You
can also explicitly add packages as "New Requirements".<br>
</p>
<p>To see this in action, in any GUI Lazarus project open the
Project Options dialog, select "Compiler Options->Compilation
and Linking" in the left hand pane and then click on the "Show
Options button. You should then see the full list of options
passed to the compiler including each package's units directory.
This feature is your friend when you are trying to work out why a
unit is "not found".<br>
</p>
<p>When you compile a project, any dependent packages should also
get compiled if their source code has been modified since they
were last compiled, their object code then gets linked into the
program.<br>
</p>
<p>Your problem with your TIndexString unit may have a similar root.</p>
<p>When you add a unit to a project, if its path is not already in
the project's search path, this should get added - and you can see
the result with "Show Options". If the unit is not added or, in
particular, when its search path is not included in the project's
"Other Unit paths" then the compiler will not able to find it.</p>
<p>Hope the above helps - it really is worth making the effort to
move to Lazarus.</p>
<p>Regards</p>
<p>Tony Whyman</p>
<p>MWA Software<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 01/01/2019 02:44, Thomas Crone via
lazarus wrote:<br>
</div>
<blockquote type="cite"
cite="mid:9E198926-67E1-405B-84C2-7200E3C0A035@cua.edu">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
If this is not the right forum for this, Please tell me where I
can post it.
<div class=""><br class="">
</div>
<div class="">I am getting the same type of message as I got a few
weeks ago:
<div class=""><br class="">
</div>
<div class=""> … '‘EClassNoFound’ with message:</div>
<div class=""> Class ‘TButton’ not found</div>
<div class=""> at address 10004A515</div>
<div class=""><br class="">
</div>
<div class="">I have tried to move to Lazarus from Delphi 4
several times over the past 5 or 6 years, </div>
<div class="">and always given up in frustration.</div>
<div class=""><br class="">
</div>
<div class="">
<div>Errors seem to pop up, go away , and come back for no
apparent reasons. (some of that, </div>
<div>of course, could be windows problems…)</div>
<div class=""><br class="">
</div>
<div>I’ve been programming since 1970, first in FORTRAN II,
then Algol, Simula, snobol, icon, </div>
<div>DEC10 assembly, various BASICs, Pascal (Turbo V2 thru
Delphi, and on VAX VMS), etc. </div>
<div>The most recent new language was python on the Raspberry
Pi.</div>
<div><br class="">
</div>
<div>Before I retired a few years ago, I volunteered to help
with the Lazarus documentation, </div>
<div>when I couldn’t figure out how to move my collection of
units (2D & 3d geometry, i/o routines, </div>
<div>geographic projections & mapping, music synthesis,
etc.) to Lazarus. In Delphi, I could just </div>
<div>put the .dcu files in the Delphi /lib directory; for the
programs I’m now working on, I had to </div>
<div>include the entire source of my TIndexString unit in the
program source.</div>
<div><br class="">
</div>
<div>maybe I should rewrite all my objects in python…</div>
<div><br class="">
</div>
<div>Tom Crone<br class="">
<blockquote type="cite" class="">
<div class="">Begin forwarded message:</div>
<br class="Apple-interchange-newline">
<div style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 0px;" class=""><span
style="font-family: -webkit-system-font, Helvetica
Neue, Helvetica, sans-serif; color:rgba(0, 0, 0,
1.0);" class=""><b class="">From: </b></span><span
style="font-family: -webkit-system-font, Helvetica
Neue, Helvetica, sans-serif;" class="">Thomas Crone
<<a href="mailto:crone@cua.edu" class=""
moz-do-not-send="true">crone@cua.edu</a>><br
class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 0px;" class=""><span
style="font-family: -webkit-system-font, Helvetica
Neue, Helvetica, sans-serif; color:rgba(0, 0, 0,
1.0);" class=""><b class="">Subject: </b></span><span
style="font-family: -webkit-system-font, Helvetica
Neue, Helvetica, sans-serif;" class=""><b class="">Re:
[Lazarus] TRadioGroup not found error</b><br
class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 0px;" class=""><span
style="font-family: -webkit-system-font, Helvetica
Neue, Helvetica, sans-serif; color:rgba(0, 0, 0,
1.0);" class=""><b class="">Date: </b></span><span
style="font-family: -webkit-system-font, Helvetica
Neue, Helvetica, sans-serif;" class="">December 15,
2018 at 9:42:45 PM EST<br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 0px;" class=""><span
style="font-family: -webkit-system-font, Helvetica
Neue, Helvetica, sans-serif; color:rgba(0, 0, 0,
1.0);" class=""><b class="">To: </b></span><span
style="font-family: -webkit-system-font, Helvetica
Neue, Helvetica, sans-serif;" class="">Lazarus mailing
list <<a
href="mailto:lazarus@lists.lazarus-ide.org" class=""
moz-do-not-send="true">lazarus@lists.lazarus-ide.org</a>><br
class="">
</span></div>
<br class="">
<div class="">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space;"
class="">I had some of the TForm as private and some
not.
<div class=""><br class="">
</div>
<div class="">When I took everything to of private,
the error went away.</div>
<div class=""><br class="">
</div>
<div class="">tom<br class="">
</div>
<div class="">
<blockquote type="cite" class="">
<div class="">On Dec 11, 2018, at 5:23 PM, Vojtěch
Čihák via lazarus <<a
href="mailto:lazarus@lists.lazarus-ide.org"
class="" moz-do-not-send="true">lazarus@lists.lazarus-ide.org</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="padding: 0px; margin: 0px;" class="">TRadioGroup
is in unit ExtCtrls. Lazarus, however, adds it
automatically to "uses" when you insert it to
form at design-time.</div>
<p style="padding:0 0 0 0; margin:0 0 0 0;"
class=""> </p>
<div style="padding: 0px; margin: 0px;" class="">V.</div>
<div style="padding: 0px; margin: 0px;" class="">______________________________________________________________<br
class="">
> Od: "Thomas Crone via lazarus" <<a
href="mailto:lazarus@lists.lazarus-ide.org"
class="" moz-do-not-send="true">lazarus@lists.lazarus-ide.org</a>><br
class="">
> Komu: <a
href="mailto:lazarus@lists.lazarus-ide.org"
class="" moz-do-not-send="true">lazarus@lists.lazarus-ide.org</a><br
class="">
> Datum: 11.12.2018 22:58<br class="">
> Předmět: [Lazarus] TRadioGroup not found
error<br class="">
></div>
My latest attempt to use Lazarus has given some
odd errors…<br class="">
<br class="">
First it complained about TEdit, so I replaced
that with TMemo.<br class="">
<br class="">
Now it is saying: Class “TRadioGroup” not found <br
class="">
<br class="">
Do I have to add something manually to the Uses
statement?<br class="">
<br class="">
I’m on Win 7 pro 64bit with Lazarus 1.8.4,
2018-05-19, FPC Ver 3.0.4, SVN Rev. 57972,
x86_64 - win64 - win32/win64<br class="">
<br class="">
Tom Crone<span class="Apple-tab-span" style="white-space: pre;"> </span><a
href="mailto:crone@cua.edu" class=""
moz-do-not-send="true">crone@cua.edu</a><br
class="">
<br class="">
----------<br class="">
<br class="">
-- <br class="">
_______________________________________________<br
class="">
lazarus mailing list<br class="">
<a href="mailto:lazarus@lists.lazarus-ide.org"
class="" moz-do-not-send="true">lazarus@lists.lazarus-ide.org</a><br
class="">
<a
href="https://lists.lazarus-ide.org/listinfo/lazarus"
class="" moz-do-not-send="true">https://lists.lazarus-ide.org/listinfo/lazarus</a><br
class="">
-- <br class="">
_______________________________________________<br
class="">
lazarus mailing list<br class="">
<a href="mailto:lazarus@lists.lazarus-ide.org"
class="" moz-do-not-send="true">lazarus@lists.lazarus-ide.org</a><br
class="">
<a
href="https://lists.lazarus-ide.org/listinfo/lazarus"
class="" moz-do-not-send="true">https://lists.lazarus-ide.org/listinfo/lazarus</a><br
class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
</body>
</html>