#Print
#Print StringOrValue
 
Parameters:

    StringOrValue = The string or value you want to dump to debuggers console
Returns: NONE
 

      #Print will print strings or numeric values to the debuggers console panel. This allows you to keep a record of how your program is running during development and testing stages.

      It's important to note, that the #print command is only available when your compiling your program in debug mode. #Print is debugger feature, if you compile and run this code as normal, PlayBASIC will ignore these statements completely.



FACTS:


      * #Print command is only available when a program is compiled and executed in a DEBUG mode (F6, F7 keys are short cuts from the IDE).




Mini Tutorial:


      In this example were going to display information both to the screen and to the Debuggers console.

  
  
; Display the phrase Hello World to the Screen
  Print "Hello World"
  
; #Print a message to the debug console
  #Print "I've successfully Printed Hello World"
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




      This has two separate outputs. The first and most obvious is to the screen and second is to the debuggers console.

Screen Output
  
  Hello World
  



Debugger Console Output
  
  I've successfully Printed Hello World
  









 
Related Info: #Break | Print :
 


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