Wish #if in designer scripts

Alessandro71

Well-Known Member
Licensed User
Longtime User
supporting #if B4i/B4A in designer scripts will allow maintaining a single copy of the script while copying/pasting between environments
 

toby

Well-Known Member
Licensed User
Longtime User
supporting #if B4i/B4A in designer scripts will allow maintaining a single copy of the script while copying/pasting between environments
It's already implemented.

To test it, create a blank b4xpage project and paste following script into the script window.
B4X:
#if DEBUG
  Button1.Text="Debug mode"
#else
  Button1.Text="Release mode"       
#end if

You can also run the attached test project.
 

Attachments

  • designerIfCondition.zip
    14.2 KB · Views: 116
Top