M Malky Active Member Licensed User Longtime User Oct 7, 2013 #1 BETA Errors I have a piece of code below:- Code: Copy If KeyCode = KeyCodes.KEYCODE_BACK Then If pnlDetails.Visible = True Then Log("Removing mapview") Activity.RemoveView Activity.CloseMenu End If End If I get the error (remove view) attached which I haven't had before? If I rem that line out and try again I get the following 'exception' error (attached) and so on for many sub routines:- Code: Copy Sub btnPhone_Click Log("Phone button Clicked") Dim btn As Button btn = Sender 'Activity.Title = "Phoning" ToastMessageShow("Going to call, WHEN it's working", True) End Sub Attachments remove view.png 55.6 KB · Views: 338 exception.png 58.6 KB · Views: 326
BETA Errors I have a piece of code below:- Code: Copy If KeyCode = KeyCodes.KEYCODE_BACK Then If pnlDetails.Visible = True Then Log("Removing mapview") Activity.RemoveView Activity.CloseMenu End If End If I get the error (remove view) attached which I haven't had before? If I rem that line out and try again I get the following 'exception' error (attached) and so on for many sub routines:- Code: Copy Sub btnPhone_Click Log("Phone button Clicked") Dim btn As Button btn = Sender 'Activity.Title = "Phoning" ToastMessageShow("Going to call, WHEN it's working", True) End Sub
Erel B4X founder Staff member Licensed User Longtime User Oct 7, 2013 #2 Are you testing it with Beta #6 (check the about box)? Can you send me your project ([email protected])? Upvote 0
Are you testing it with Beta #6 (check the about box)? Can you send me your project ([email protected])?
M Malky Active Member Licensed User Longtime User Oct 7, 2013 #3 Thanks Erel, it must have been an older version I downloaded when it was released and not had time to install. Seemed ok to start with then errors, but realised I hadn't saved the code under the new version, doh! Ok now apart from the Activity.Removeview, which may be deprecated, so I replaced it with Activity.RemoveAllViews and it compiles fine. Cheers, Malky Upvote 0
Thanks Erel, it must have been an older version I downloaded when it was released and not had time to install. Seemed ok to start with then errors, but realised I hadn't saved the code under the new version, doh! Ok now apart from the Activity.Removeview, which may be deprecated, so I replaced it with Activity.RemoveAllViews and it compiles fine. Cheers, Malky
Erel B4X founder Staff member Licensed User Longtime User Oct 7, 2013 #4 View.RemoveView removes the view from its parent. Activity.RemoveView was there by mistake. Upvote 0