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
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
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
Wow!
Thanks again!
Lynn
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
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!"
There are currently 1 users browsing this thread. (0 members and 1 guests)