Recent

Author Topic: basic question - referencing stuff in other forms  (Read 4251 times)

cazzajay

  • Jr. Member
  • **
  • Posts: 94
basic question - referencing stuff in other forms
« on: July 01, 2009, 07:32:21 pm »
if i have a form1, with say an editbox1 in it, and i want to reference the text in editbox1 from another form (say form2), which is shown when a button on form1 is clicked, how do i do it?

If i put form2 in the uses of form1, (so i can make button1 on form1 open form2)
and i put form1 in the uses of form2, (so i can make form2 reference the edit box on form1) i get a circular unit reference error when compiling?

any ideas?
Windows XP 32 bit / Lazarus 1.0.6 / FPC 2.6.0

cazzajay

  • Jr. Member
  • **
  • Posts: 94
Re: basic question - referencing stuff in other forms
« Reply #1 on: July 01, 2009, 08:39:02 pm »
solved it - i was putting the form names in the wrong uses section - i was putting it under interfaces not implementation! d'oh!  :-[
Windows XP 32 bit / Lazarus 1.0.6 / FPC 2.6.0

 

TinyPortal © 2005-2018