B4J Question [BANano] How can I use #Region ? & #End Region

Mashiane

Expert
Licensed User
Longtime User
Hi

I'm organizing my code in regions. This sometimes happens inside subs.

B4X:
[ERROR 21]: [pgcolumnnames,tblcolumnnames_pcode: 1424] #region is not supported in BANano!

Whilst this is just on my side to structure my code, is it possible for BANano to support such use cases?

Thanks.
 

Daestrum

Expert
Licensed User
Longtime User
Working inside subs here (just an example - I don't really write regions like this)
B4X:
#Region Main
Sub AppStart (Form1 As Form, Args() As String)
	MainForm = Form1
	MainForm.RootPane.LoadLayout("Layout1")
#Region ShowMainform
	MainForm.Show
#End Region	
End Sub
#End Region
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…