Results 1 to 5 of 5

Thread: Cumment Out Large Blocks

  1. #1

    Default Cumment Out Large Blocks

    Is there a way to easily comment out large blocks of code?

    I want to test may app without having to install any files or code sign
    them. Like Clarion's OMIT.

    --
    Lynn Howard
    Linked Software
    www.linkedsoftware.com

  2. #2

    Default Re: Cumment Out Large Blocks

    Lynn,

    > Is there a way to easily comment out large blocks of code?
    >
    > I want to test may app without having to install any files or code sign
    > them. Like Clarion's OMIT.

    You have several options. For example: a compiler variable and an
    #ifcompvar directive:

    #set compiler variable [SKIPCOMPILE] = "1"
    #ifcompvar [SKIPCOMPILE] Equals "1" Then
    ! Does not compile if [SKIPCOMPILE] is set to 1
    ! yada
    #end

    Then set [SKIPCOMPILE] = "0" and it compiles in. You can even control the
    compiler variable via "SKU" or a "Release" to automate this process.

    Friedrich
    Attached Images Attached Images   

  3. #3

    Default Re: Cumment Out Large Blocks

    Wow!

    Thanks again!

    Lynn

  4. #4

    Default Re: Cumment Out Large Blocks

    I'm missing something. Using:

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    #set compiler variable [SKIPCOMPILE] = "1"
    #ifcompvar [SKIPCOMPILE] Equals "1" Then
    ! Does not compile if [SKIPCOMPILE] is set to 1
    ! yada
    #end

    Then set [SKIPCOMPILE] = "0" and it compiles in.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Since [SKIPCOMPILE] is not a pre-defined SB variable how does it know to
    start skipping?

    Thanks!

    Lynn

  5. #5

    Default Re: Cumment Out Large Blocks

    Lynn,

    > Since [SKIPCOMPILE] is not a pre-defined SB variable how does it know to
    > start skipping?

    How about this line?<g>

    #set compiler variable [SKIPCOMPILE] = "1"

    --
    Lee White

    RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
    RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
    Report Faxing.....: http://www.cwaddons.com/products/afe/
    ---Enroll Today---: http://CWaddons.com

    Enhanced Reporting: http://CreativeReporting.com

    Product Release & Update Notices
    http://twitter.com/DeveloperPLUS

    Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •