Wish #include "file.bas"

peacemaker

Expert
Licensed User
Longtime User
B4X:
    #if debug
        #include "sensor1.bas"
    #else if Condition2
        #include "sensor2.bas"
    #End If
 

Cableguy

Expert
Licensed User
Longtime User
You can already do that, but instead of #include, you dim you sensor using diferent modules.
On complilation o ly the suited module will be aggregated to the final code
 

peacemaker

Expert
Licensed User
Longtime User
If sensor1.bas, sensor2.bas and sensor3.bas have the same public variables, but different Inline-C code with different C-libs - they can be used optionally with the Main module code that is shared for all, Main can be edited only at one place, without need to have 3 separate projects.
 
Top