PDA

View Full Version : Comment function in the Studio



chuckatkinson
10-Apr-2009, 10:42 AM
Request that when you drop a standard VDF class into a program that has commented code sections like Grid that the Studio comment add/remove will remove these. I understand the code is indented with comments and the code commenter doesn't handle it. So can in the Grid and other standard class code can you move the comments to the outside so to remove is just a highlight and keyboard shortcut away.

Example:

//Procedure DoFillGrid
// Integer iRow iMaxRows
//
// Move 20 to iMaxRows
// For iRow From 1 to iMaxRows
// Send Add_Item Msg_None ("Col 1, row " + String (iRow))
// Send Add_Item Msg_None ("Col 2, row " + String (iRow))
// Send Add_Item Msg_None ("Col 3, row " + String (iRow))
// Loop
//End_Procedure

//Procedure OnChange Integer iNewItem
// String sValue
//
// Get Value iNewItem to sValue // value of changed cell
//End_Procedure

Vincent Oorsprong
11-Apr-2009, 02:08 AM
Chuck,

Did you know you can easily remove these comments by placing your cursor on the first slash, press shift-alt-down as long as you see the comment slashes, then do one arrow right so that 2 columns are selected and press DEL.

Igor van Houttum
15-Apr-2009, 03:34 AM
Or <Ctrl> mouse-drag.
But I agree with Chuck: the studio editor should ignore whitespace in front of comments, regardless of where it would like the default position of the the slashes to be.