DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Comment out lines of script

Is there a way to select several lines of script and comment out the lines so they don't run.  And be able to uncomment them.
0 Kudos
Message 1 of 6
(8,151 Views)

Hello!

 

No, there is only a line comment and no block comment. You can use a external editor like Notepad++ (free) or UltraEdit (comercial). There you can select multiple line and comment them in/out in one step. DIAdem is missing this feature.

 

If you only have global code you can use another trick: Just build a Sub around.

 

Matthias

Message Edited by Twigeater on 01-14-2010 09:35 PM
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 6
(8,148 Views)

Hi bm2cox

 

Please refer tho the DIAdem help index keyword "Shortcuts" and the section "Script". In DIAdem SCRIPT press CTRL + ' (single quotation mark) to comment  or CTRL+ Shift + ' to uncomment selected lines. In the latest version you can also  press CTRL +  D (The '-sign makes some problems with asian keybords).

 

Hope this help

 

Winfried

Message 3 of 6
(8,130 Views)
The Ctrl + ' does not seem to work in Version 10.2
0 Kudos
Message 4 of 6
(8,117 Views)

Hi

 

you are right, this is available in DIAdem 11.0 an later. The SCRIPT module was completely revised  and has a lot of new feature (e.g. codecompletion).

 

Winfried

0 Kudos
Message 5 of 6
(8,114 Views)

Just for additional info.
Ctrl+D will comment out the selected lines.
Ctrl + Shift + D will uncomment selected lines.

 

Regards,

Rob S
Applications Engineer
National Instruments
0 Kudos
Message 6 of 6
(6,837 Views)