Add String in last position

Back to topics list To post a new topic, please log in or register
avatar
54
d.saravana21 2015.10.22 20:37
 

Dear brothers and traders in this code it gives the result following..

and i would like to add some "xxx" in that last value after i got StringLen modified.

string close_val = DoubleToStr(iClose(cysymbol,cur_tf,i),idigits);  // 1.45678
close_val = StringSubstring(close_val, 0, StringLen(lose_val) - 1); // 1.4567

it gives result 1.4567 and i want add 3 some more values after that like 1.4567xxx

the xxx value is constant string...

could you please guide me in this?

With Thanks and Regards

Saravana
avatar
12985
WHRoeder 2015.10.22 22:06 #
 
  1. RTFM learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
  2. close_val = close_val + "xxx";

avatar
54
d.saravana21 2015.10.23 06:32 #
 

Thank you brother WHRoeder. I was trying StringAdd :(


avatar
12985
WHRoeder 2015.10.23 18:16 #
 
or
StringAdd(close_val, "xxx");
or
close_val =  StringConcatenate(close_val, "xxx");

Back to topics list  

To add comments, please log in or register