Hi People,
I guess I've waited long enough without help and would like to ask for some, to solve my problem of my second page not functioning. When I do a simple math calculation on my main page I click a button at the bottom of the screen to move to page 2 to do the same calculation on the second room of a building. Page 2 takes the length and width but stops there instead of logging on the IDE or showing on the page 2. I think I'm close but without a cigar.
Any suggestions?
Thanks
P.S. the whole app is zipped below. Also if I copy the code from page 2 and let it stand alone in a new B4A project it works properly.
I guess I've waited long enough without help and would like to ask for some, to solve my problem of my second page not functioning. When I do a simple math calculation on my main page I click a button at the bottom of the screen to move to page 2 to do the same calculation on the second room of a building. Page 2 takes the length and width but stops there instead of logging on the IDE or showing on the page 2. I think I'm close but without a cigar.
Any suggestions?
Thanks
P.S. the whole app is zipped below. Also if I copy the code from page 2 and let it stand alone in a new B4A project it works properly.
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout_Page_2")
pnlBitmap2.Initialize ("")
Activity.AddView (pnlBitmap2, 10%x, 270dip,70%y, 200dip)
Private bdwBitmap2 As BitmapDrawable
bdwBitmap2.Initialize(LoadBitmap(File.DirAssets, "framing.jpg"))
bdwBitmap2.Gravity = Gravity.FILL
pnlBitmap2.Background = bdwBitmap2
End Sub
Sub btnCalc2_Click
Result2 = edtLen2.Text * edtWidth2.Text
lblResult2.Text = Result2 & " Square Feet"
Log(Result2 & " Sq Ft")
End Sub
Sub lblNext2_click
Activity.RemoveAllViews
Activity.LoadLayout("Layout_Page_3")
End Sub
Attachments
Last edited: