Forum > Beginners
Edit1.Text = Type TEDIT has no component named TEXT
AllanMello:
Lazarus 2.0.6 dfsg-3 Linux
Edit1.Text = Type TEDIT has no component named TEXT
published property TEdit.Text:TCaption
How to solve this problem?
Zoran:
--- Quote from: AllanMello on May 04, 2022, 02:19:26 pm ---Lazarus 2.0.6 dfsg-3 Linux
Edit1.Text = Type TEDIT has no component named TEXT
published property TEdit.Text:TCaption
How to solve this problem?
--- End quote ---
With this explanation of your problem, I doubt anyone can easily understand what is happening to you. TEdit certainly has the property (not component???) named Text.
This might help:
Upload here the simple project which demonstrates this problem (zipped without binaries, read this first please).
Handoko:
Yep, show us the code.
Or, start a new project, drop a TEdit on the form and put this code in the Form's OnCreate event:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- Edit1.Text := 'Hello!';
If you still get the same error, I think you may need to reinstall your Lazarus.
Zvoni:
--- Quote from: Handoko on May 04, 2022, 04:34:32 pm ---If you still get the same error, I think you may need to reinstall your Lazarus.
--- End quote ---
Which he might need to do anyway.
i see a "dfsg" in his Lazarus-Description, which is probably from Debian/Ubuntu-Repository.
Read the "How to install on Linux" Sub-Forum
rvk:
--- Quote from: Zoran on May 04, 2022, 02:34:27 pm ---
--- Quote from: AllanMello on May 04, 2022, 02:19:26 pm ---Lazarus 2.0.6 dfsg-3 Linux
Edit1.Text = Type TEDIT has no component named TEXT
published property TEdit.Text:TCaption
--- End quote ---
With this explanation of your problem, I doubt anyone can easily understand what is happening to you. TEdit certainly has the property (not component???) named Text.
--- End quote ---
This might even be a real message (even though it says "component named TEXT").
See a similar topic here with screenshot.
https://www.lazarusforum.de/viewtopic.php?t=6019
and https://www.pilotlogic.com/sitejoom/index.php/forum/debug/4867-trying-to-inspect-string-lists-little-luck
This is probably an inspection, watch or debug window (hovering over Edit1.Text) where Edit1.Text isn't accessible because it's not a field but has a Getter/Setter.
So not a real error message which prevents the program from running.
(See also https://www.mail-archive.com/lazarus@lists.lazarus-ide.org/msg09668.html)
Navigation
[0] Message Index
[#] Next page