PBCompileMode
 

      The PBCompileMode constant contains how the current program has been compiled. This allows you to write code that can automatically adapt to how the program was compiled.


Compile Modes

      0 = Program was compiled/running through the IDE
      1 = Compiler is building an stand alone executable



      PBCompileMode will be generally used to select the settings your compiled program should use. Since you might want different settings while developing your program, than you do when building your final executables.


  
  #IF pbcompilemode=0
   ; This code is being compiled and run from the editor
     Constant  MyProgramsDebugMode = yes
  #ELSE
   ; This code is being compiled into an exe
     Constant  MyProgramsDebugMode = no
  #ENDIF
  




 
Related Info: PBDebug | PBDebugMode | PBExplicitState | PBTraceState | PlayBasicVersion :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com