[Gambas-user] Fwd: Sending Data From one Form to another
Steve Starr
comtux at ...626...
Sat Aug 27 14:38:14 CEST 2005
I was wondering if anyone could give me some insite as to why this isnt working?
Tool form
' Gambas class file
PUBLIC SUB Button1_Click()
IF Dialog.OpenFile() THEN RETURN
Piconfig.Tbox.Text = File.Load(Dialog.Path)
Piconfig.Show
END
-------------------------------------------------------------------
Picconfig form
' Gambas class file Piconfig
PUBLIC Tbox AS Control
PUBLIC SUB Form_Open()
TBox = Textbox1
END
I just keep getting and object null error
Thanks to all who reply
On 8/25/05, Steve Starr <comtux at ...626...> wrote:
> 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