W walt61 Well-Known Member Licensed User Longtime User Nov 10, 2018 #1 With this code: B4X: 'line1 'line2 #If B4A then 'line3 #End If 'line4 'line5 Sub MySub End Sub the only help that seems to be displayed in the IDE is as of line4; it happens with both B4A and B4J.
With this code: B4X: 'line1 'line2 #If B4A then 'line3 #End If 'line4 'line5 Sub MySub End Sub the only help that seems to be displayed in the IDE is as of line4; it happens with both B4A and B4J.
Erel B4X founder Staff member Licensed User Longtime User Nov 11, 2018 #2 You will need to write it like this: B4X: #if B4A 'line1 'line2 'line3 'line4 'line5 Sub MySub #else if B4J 'line1 'line2 'line4 'line5 Sub MySub #endif End Sub Comments are removed before compilation. They don't behave like regular code.
You will need to write it like this: B4X: #if B4A 'line1 'line2 'line3 'line4 'line5 Sub MySub #else if B4J 'line1 'line2 'line4 'line5 Sub MySub #endif End Sub Comments are removed before compilation. They don't behave like regular code.