This fragment works in the IDE but fails when optimised compiled
This compiles to
The reason for failure is that that the Door library returns "False" or "True" for Booleans and in this case LCompareEqual does a case-sensitive comparison against "true" which therefore fails.
Has something changed in 6.80? If not I'm astonished that I haven't noticed this before!
B4X:
VScrollVisible = obj2.GetProperty("Visible") 'Vertical scroll bar visible
If VScrollVisible = True Then
' not reached when optimised compiled
...
This compiles to
B4X:
if (LCompareEqual(var__main_vscrollvisible,@"true"))
The reason for failure is that that the Door library returns "False" or "True" for Booleans and in this case LCompareEqual does a case-sensitive comparison against "true" which therefore fails.
B4X:
return (lSide == rSide);