Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal 8.5 - Commenting Out Sections Of Code 2

Status
Not open for further replies.

rayna

Programmer
Sep 24, 2001
54
0
0
CA
Wondering if anyone knows how to comment out entire sections of code in a formula.

Each line can be commented out by // and in some languages you can do:

/*Here is the text I want to not be evaluated*/

Does Crystal have such a thing, because commenting out a hundred lines of code one by one is terribly annoying.

Thank you!
Rayna

Man plans. God laughs.
 
Thank you for your help. I thought it HAD to be there someplace and I was just missing it.

Rayna

Man plans. God laughs.
 
No, but you CAN swipe across all the code with your mouse that you want to comment out, then hit the "//" icon at the top, and it comments out the whole thing.

DataDog
'Failure Is Not An Option'
 
Hi,
Great hint DataDog, I've been working with Crystal for many years ( never mind how many) and I never noticed that ability..Thanks for saving me lots of repetitive typing of // s..

Star for you..

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
The question was for Crystal 8.5 and I don't believe that option is available there.

In later versions you can even hit Alt-M...

Cheers,
- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
IdoMillet....

Sad, but true!!! It does not apply to 8.5.

Looks like I'll be typing a whole slew of forward slashes until we upgrade!!

Rayna



Man plans. God laughs.
 
O.K. Here's a real crude way to get this job done quickly ...

Since you don't have the "//" icon in 8.5, Cut (ctrl-x)the stuff you want to comment out, paste (ctrl-v)it into Excel, (yes Excel) cell A1.

Click on Column A, right mouse click and press "Insert" (this creates a new "A" column).

Into the new cell A1, put a "//".

Copy cell A1 and Paste it into as many rows as you have.

Then Copy and Paste Columns A (the '//")and B (original contents) back into your formula.

I tried this and it works.

DataDog
'Failure Is Not An Option'
 
Oh my gosh....that worked perfectly. And I had 199 lines of code. :)

You are da bomb! Thank you so much.

Rayna


Man plans. God laughs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top