input variables and comments - page 2

 
Mladen Rakic:

You can not (input variables descriptions are compile time saved)

You can only adjust the output for runtime output (like Comment(), Print(), and similar ...).

You can use TerminalInfoString(TERMINAL_LANGUAGE) to get the language

Ok, thanks for your answer.
 
Stanislav Korotky:

If you want your comments to not interfere with user interface, try the following syntax:

input int variable = 0 /* my comment */;

The decision to use standard comments (not special syntax comments, such as used in Java doc for example) in code to alter user interface is really bad decision from MQ.
 

Yeah! I wish I had seen this a while ago.
 
Anthony Garot:
Yeah! I wish I had seen this a while ago.

You can also try

input int variable = 0;; // my comment
 
Alain Verleyen:

You can also try

Yes, @whroeder1 mentioned that. That's nice for getting rid of the comment completely.

What I like about the "inside" comment method is that I can have my own suppressed comment -AND- change the input comment at the same time.

For example:

input int      InpSlowPeriod=144       /* Fiboancci number */; // Slow period
input int      InpFastPeriod=89        /* Fiboancci number */; // Fast period

The best of both worlds!

 
Anthony Garot:

Yes, @whroeder1 mentioned that. That's nice for getting rid of the comment completely.

Sorry I missed it.

What I like about the "inside" comment method is that I can have my own suppressed comment -AND- change the input comment at the same time.

For example:

The best of both worlds!

Yes.

Reason: