Re: [lazarus] Main Form retreiving data from Child Form

2007-12-04 Thread Giuliano Colla
el stamatakos ha scritto: Hi R, Can you do this. I get an error Circular unit reference to unit1 To make it clearer: in Unit1 you should have: unit Unit1; {$mode ..blah blah} interface uses Classes,Sysutils,LResources,blah blah blah; . implementation uses unit2; .. end.

[lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread el stamatakos
Hi All, I have an MDI application in which I have two forms. Form1 (Main form) and form2 (Child Form). In form 2 I have some TComboBox and TEdit Components. In the main form I have some TEdit components. I would like Form1(MainForm) TEditBox to have info from Form2(Child Form) TEditBox. I

Re: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread Roberto Padovani
You can use public variables (or a private variable with the corresponding public methods for reading and writing to it, or even better a property). For simplicity, let's say that we go with the public variables. Let TMainForm be the class name of the main form. In the child form class, you could

RE: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread el stamatakos
. Thanks. Best, Lefti Date: Mon, 3 Dec 2007 21:24:29 +0100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] Main Form retreiving data from Child Form You can use public variables (or a private variable with the corresponding public methods for reading and writing

Re: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread Roberto Padovani
retreiving data from Child Form You can use public variables (or a private variable with the corresponding public methods for reading and writing to it, or even better a property). For simplicity, let's say that we go with the public variables. Let TMainForm be the class name of the main form

RE: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread el stamatakos
Hi R, Can you do this. I get an error Circular unit reference to unit1 Thanks Lefti Date: Mon, 3 Dec 2007 21:52:08 +0100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] Main Form retreiving data from Child Form yeah, add unit1 in the uses clause of unit2 and add

RE: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread el stamatakos
Hi R, Can you do this. I get an error Circular unit reference to unit1 Thanks Lefti Date: Mon, 3 Dec 2007 21:52:08 +0100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] Main Form retreiving data from Child Form yeah, add unit1 in the uses clause of unit2 and add

Re: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread John
el stamatakos wrote: Hi R, Can you do this. I get an error "Circular unit reference to unit1" Thanks Lefti Date: Mon, 3 Dec 2007 21:52:08 +0100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] Main Form retreiving data from Child Form yeah,