S
QR Bits


Using the #IFDEF command to Show Debug statements in your SQR

You can add #IFDEF Debug  and #EndIF statements to your SQR code when you want to debug it.  Simply add your code inbetween the #IFDEF DEBUG and #ENDIF.  If you run the SQR with the -DEBUG command line switch, any of the code in the #IFDEF DEBUG section will be executed.

The following code bit can be placed inside of your SQR.  This will allow your commands within the #IFDEF Debug block to be executed when using the -DEBUG command line option with SQR. 


! --------------------
! - BEGIN CODE BIT
! --------------------

#IFDEF DEBUG
      Show 'Executing the Procedure 1A'
      display $somevariable
#ENDIF

! --------------------
! - END CODE BIT
! --------------------


ORDER TODAY!
More of these Tips can be found in this book!