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

9 replies

null
    • Agus
    • 5 yrs ago
    • Reported - view

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

    • gsechi_centrostudimlit
    • 5 yrs ago
    • Reported - view

    thanks Agus.

    • activelifejss
    • 5 yrs ago
    • Reported - view

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

    • activelifejss
    • 5 yrs ago
    • Reported - view

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

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

    • Marc_DELETANG
    • 3 yrs ago
    • Reported - view

    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

    • Sean
    • 3 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.

    • Università Cattolica del Sacro Cuore
    • Gianluca_Sechi
    • 3 yrs ago
    • Reported - view

    "// SOME TEXT";

    it works

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

    • Tom_Kerswill
    • 2 yrs ago
    • Reported - view

    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.

    • Michael_Blechinger.1
    • 1 yr ago
    • Reported - view

    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.

Content aside

  • 1 yr agoLast active
  • 9Replies
  • 4883Views
  • 1 Following