PDA

View Full Version : Cumment Out Large Blocks



NewsArchive
02-04-2013, 11:40 AM
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

NewsArchive
02-04-2013, 11:51 AM
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

NewsArchive
02-05-2013, 02:15 AM
Wow!

Thanks again!

Lynn

NewsArchive
02-05-2013, 02:16 AM
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

NewsArchive
02-05-2013, 02:16 AM
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!"