comments in C/A

charles.rooscharles.roos Member Posts: 60
How does {} comments work?

if i have code

{EE1-3+}
code1
{EE1-3+}
code2

and i want to comment all the code out, so that code1 and code2 would never be executed, then is this correct way to do:

{

{EE1-3+}
code1
{EE1-3+}
code2

}

Comments

  • tinoruijstinoruijs Member Posts: 1,226
    That should work indeed.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • WaldoWaldo Member Posts: 3,412
    Is this a tip? :mrgreen:


    This should also work:
    {EE1-3+} 
    //code1 
    {EE1-3+} 
    //code2
    
    Actually, I don't like commenting with "{". I only use it for temporary basis or when I have to comment a huge amount of code (to be quick).

    In this case, I would only have used the slashes... . But that's just me.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • JedrzejTJedrzejT Member Posts: 267
    I remember i have small problem in the past with import object in txt format when i have comments { in comments , i must delete one of them.

    like this
    {
    code
    {code}
    code
    }
Sign In or Register to comment.