‎2009 Apr 10 4:05 PM
I am wondering if there is really a difference between putting all your code in one line or multiple lines.
For example,
IF v_flag_up = c_checked. "comment
CONTINUE.
ENDIF.
vs
IF v_flag_up = c_checked. CONTINUE. ENDIF. "comment
‎2009 Apr 10 4:22 PM
Doesn't make a difference.
Writing in different lines increases readibility and tracability for ourself as well as others who refer the code.
Good practice to keep the code organized.
Regards,
Lalit Mohan Gupta.
‎2009 Apr 10 4:10 PM
‎2009 Apr 10 4:22 PM
Doesn't make a difference.
Writing in different lines increases readibility and tracability for ourself as well as others who refer the code.
Good practice to keep the code organized.
Regards,
Lalit Mohan Gupta.
‎2009 Apr 10 5:23 PM
would it affect something in the debugger or anything to that effect?
‎2009 Apr 10 5:30 PM
It wont !
Only when executing the arrow will point to that line till all the statements on that line are executed.
Regards,
Lalit Mohan Gupta.
‎2009 Apr 10 5:31 PM
Hi Christian,
The best practise when formatting your code is to use the Pretty Printer with Indent and Keyword in caps. Also, keeping the code as you have shown in multiple lines helps with readability and also while debugging makes the single stepping to code especially in conditional statements more easy to follow.
Hence though multiple or single line doesnt impact program performance, multiple lines makes the code more "pretty" and easier to follow in debugging.
Cheers,
Aditya