Android Question [XUI] IsB4A -IsB4J - IsB4i


Licensed User
Longtime User
XUI.IsB4A / IsB4i / IsB4J properties. Alternative to compilation symbols (when possible).

1 - What "when possible" means?
2 - Is the advantage of using these instead of "compile directives" that the editor checks every block of the source code?


Licensed User
Longtime User
excellent! I was not aware that this feature was already implemented 3 years ago.

I first thought this would be perfect for one liner things like for example setting the gravity only on/for android (seen below).
the (old) conditional method requires 3 lines instead of 1.

but the parser doesn't seem to skip the lines inbetween if/end for code checking when it is parsing on the other IDE.

If xui.IsB4A Then iv.Gravity=Gravity.FILL

results in an error because the gravity object is not known in B4i


Is this something that might change over time or is it fixed for common objects/properties only?
Upvote 0