I was wondering, would it be possible to have "regions" of code that would not be interpreted by the conversion from Basic into Java, and simply be copied "as is" directly into the Java code before compilation? I would think it would be an alternative to reflection, especially for multiple lines of Java.
I was thinking of something similar to the current "#Region" feature; maybe something like:
The above is useless in itself, but I think the idea would be very powerful. At this stage, I do not have a need for it, its just an idea.
I was thinking of something similar to the current "#Region" feature; maybe something like:
B4X:
Sub Activity_Create(FirstTime As Boolean)
Dim _mcur_game_mode As String
If FirstTime Then
#Java
if ((_mcur_game_mode).equals(""))
{
_mcur_game_mode = "Standard";
};
#End Java
pnlLayer.Initialize("pnlLayer")
Activity.AddView(pnlLayer, 0, 0, 100%x, 100%y)
cvsLayer.Initialize(pnlLayer)
End If
End Sub
Last edited: