Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
circular unit reference
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Questions about TFuncSeri...
by
wp
[
Today
at 12:36:23 am]
UOS - pre-compiled librar...
by
Fred vS
[
Today
at 12:34:06 am]
88 year D. Knuth changes ...
by
valdir.marcos
[March 12, 2026, 11:51:53 pm]
TChart: Wrong default val...
by
wp
[March 12, 2026, 10:14:38 pm]
Pipewire API
by
Fred vS
[March 12, 2026, 10:11:02 pm]
interface and GUID someth...
by
valdir.marcos
[March 12, 2026, 10:05:56 pm]
Hello! Anything new?
by
PascalDragon
[March 12, 2026, 09:39:09 pm]
TSplitter color property ...
by
valdir.marcos
[March 12, 2026, 09:20:11 pm]
Pocketbase
by
steve612
[March 12, 2026, 09:10:08 pm]
ShortStrings vs long stri...
by
valdir.marcos
[March 12, 2026, 08:55:02 pm]
Lazarus Bugfix Release 4....
by
dsiders
[March 12, 2026, 08:53:38 pm]
Any way to "embed" Window...
by
valdir.marcos
[March 12, 2026, 08:42:31 pm]
LazPaint (alpha-blending,...
by
CM630
[March 12, 2026, 08:38:30 pm]
Z80 ZX Spectrum and Syste...
by
d2010
[March 12, 2026, 07:58:28 pm]
could Ardour's YTK be use...
by
fifr
[March 12, 2026, 07:29:40 pm]
Qt6/Wayland clipboard: pa...
by
valdir.marcos
[March 12, 2026, 06:27:22 pm]
[ANN] PasBuild 1.5.0 rele...
by
valdir.marcos
[March 12, 2026, 06:19:54 pm]
Synchronizing Lazarus pro...
by
valdir.marcos
[March 12, 2026, 05:46:58 pm]
class not found
by
SA.Blackmon
[March 12, 2026, 05:27:32 pm]
Register global hotkey
by
Thaddy
[March 12, 2026, 04:20:28 pm]
Crystal report edit
by
Petrus Vorster
[March 12, 2026, 03:12:59 pm]
Faster asin() Was Hiding ...
by
MathMan
[March 12, 2026, 01:58:30 pm]
[ANN] PasBuild 1.6.0 rele...
by
Graeme
[March 12, 2026, 12:19:30 pm]
Debian removes FPC/Lazaru...
by
dbannon
[March 12, 2026, 08:44:10 am]
[revisited] triple click
by
dbannon
[March 12, 2026, 07:45:14 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: circular unit reference (Read 6135 times)
jw
Full Member
Posts: 126
circular unit reference
«
on:
October 14, 2010, 09:51:06 pm »
How do I access variables set up in my main form unit1 from a second form unit2 without getting the circular reference error?
I have a boolean variable in my main form I need to be able to set it true or false from a button on the second form.
Logged
typo
Hero Member
Posts: 3051
Re: circular unit reference
«
Reply #1 on:
October 14, 2010, 09:54:10 pm »
Try to write a uses clause below the implementation keyword.
Logged
LazarusBrasil.Org
jw
Full Member
Posts: 126
Re: circular unit reference
«
Reply #2 on:
October 14, 2010, 09:58:45 pm »
I'm terribly sorry, man your fast, I didn't search the forum well enough before posting
http://forum.lazarus.freepascal.org/index.php/topic,4015.0.html
say's what you did typo
now it appears I can access memo and such on the main form but it's telling me I it cant find the boolean var I've defined.
I'm going to try and move that boolean variable to the public and see if that helps.
Logged
typo
Hero Member
Posts: 3051
Re: circular unit reference
«
Reply #3 on:
October 14, 2010, 10:36:16 pm »
Move it to just below the Form variable, which is a global one.
Logged
LazarusBrasil.Org
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
circular unit reference
TinyPortal
© 2005-2018