More Elegant Way to Format Output?

 

We now have in mql4 a way to formate the output with a variable number of digits:

...
   string fmt = StringFormat("%%.%df",digs),
   Comment(StringFormat("Var1: %s  Var2: %s ...",
            StringFormat(fmt,var1),StringFormat(fmt,var2), ...);

Is there a way that I need only one StringFormat instead of at least one for each variable to be shown?

 
calli:

We now have in mql4 a way to formate the output with a variable number of digits:

Is there a way that I need only one StringFormat instead of at least one for each variable to be shown?

Unfortunately not, as Metaquotes doesn't implemented the complete specs as in C++ apparently.

 

hmm :(

Anyway thanks!

Reason: