[Gambas-user] Fwd: Sending Data From one Form to another

Steve Starr comtux at ...626...
Thu Aug 25 14:15:55 CEST 2005


Thank you very much that worked great :)

On 8/25/05, Alex Schaller <gambas at ...1077...> wrote:
> Hello Steve!
> 
> Here is how I did send data from one Form to another.
> Create two forms (Form1 and Form2) and place a editor control on Form1 and a
> Button on form2 then paste the code below into the appropriate Form class.
> 
> What I basically did is to create a public handle to the editor on form1.
> There is probably a better way of doing this, but it works .
> 
> Have a great day!
> 
> 
> ' Gambas class file Form1
> 
> PUBLIC heditor AS Control
> 
> PUBLIC SUB Form_Open()
> 
>   heditor = Editor1
>   form2.Show
> 
> END
> 
> 
> ' Gambas class file Form2
> 
> PUBLIC SUB Button1_Click()
> 
>   Form1.heditor.insert("Hello World")
> 
> END
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list