0

How to insert comment in code?

Hi NDB family! Is there a way to insert some kind of code to add a comment within code? I tried to use /* COMMENT */ but it doesn't seem to work.

THX.

G

9replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • Agus
    • Agus
    • 4 yrs ago
    • Reported - view

    ---
    let Comment: = "here is a comment"
    ---

    Like
  • thanks Agus.

    Like
  • Yes we need an easy comment function such as // instead of just assigning a meaningless variable as a workaround...

    Like
  • Apparently just the quotes are needed, the "let" and variable name is not needed. So, you can insert comments using this;

    "---INSERT COMMENT HERE---";

    Like
  • ca ne marche pas :

    si par exemple je veux mettre une ligne de code inactive comme  (select Guests where Groupe.Situation = "parti").('GL Open' := 0);

    et que je mette ça 

    "(select Guests where Groupe.Situation = "parti").('GL Open' := 0);"

    ou "(select Guests where Groupe.Situation = "parti").('GL Open' := 0)";

    j'ai une erreur  de programmation car il y a déjà " dans le texte

    Like
    • Sean
    • Sean
    • 2 yrs ago
    • Reported - view

    "(select Guests where Groupe.Situation = ""parti""). ('GL Open': = 0);"

     

    Ce n'est pas ce que nous voulons, mais c'est ce avec quoi nous devons travailler. Vous devez doubler les guillemets existants dans le code. S'il y en a trop, il vaut mieux couper et coller le code dans un fichier texte.

    Like
  • "// SOME TEXT";

    it works

    "//"; <-- actually this is not necessary, but it helps when you have tons of lines of code...

    Like
  • I think an easy way to comment out blocks of code is essential!

     

    If quotes are used, it's hard to comment out blocks of code that already contain quotes in them.

    Like
  • Actually i have the issue, that no version of doing a comment is working for me on Ninox 3.6.6 on macOS.

    Did something change in the syntax?

    It prevents me from saving the code in the function-field because of the red highlighted number on the left.

    Like
Like Follow
  • 4 mths agoLast active
  • 9Replies
  • 4478Views
  • 1 Following