C chrjak Active Member Licensed User Longtime User Apr 22, 2014 #1 Hey guys. I started to try B4J 6 minutes ago and i didnn't find a tutorial for calling another form. i get a null pointer exception with my try. Can someone help me pls? Regards
Hey guys. I started to try B4J 6 minutes ago and i didnn't find a tutorial for calling another form. i get a null pointer exception with my try. Can someone help me pls? Regards
Erel B4X founder Staff member Licensed User Longtime User Apr 22, 2014 #2 You probably didn't initialize the second form. Example of a second modal dialog: http://www.b4x.com/android/forum/threads/modal-dialogs.34656/ Example of two forms: B4X: Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1 MainForm.Show Dim frm2 As Form frm2.Initialize("frm2", 400, 400) frm2.Show End Sub Upvote 0
You probably didn't initialize the second form. Example of a second modal dialog: http://www.b4x.com/android/forum/threads/modal-dialogs.34656/ Example of two forms: B4X: Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1 MainForm.Show Dim frm2 As Form frm2.Initialize("frm2", 400, 400) frm2.Show End Sub