Anyone have techniques to line up text with the comment function?

 

Hi Everyone!


Does anyone know how to line up texts? Below is my code, but the problem is that when profit is in double or more digits, the remaining text on the right shifts along with the additional digits.. :) Pls advise


Thanks!



void Comm()
{
string Line1 = "BUY SELL COMB";
string Line2 = "Ticket Open Close SL Profit Mark Ticket Open Close SL Profit Mark Direction Profit SL Mark";
string Line3 = DoubleToStr(Table[1][1],0)+" "+DoubleToStr(Table[1][2],4)+" "+DoubleToStr(Table[1][3],4)+" "+DoubleToStr(Table[1][4],4)+" "+DoubleToStr(Table[1][5],2)+" "+DoubleToStr(Table[1][6],0)+" "+DoubleToStr(Table[1][7],0)+" "+DoubleToStr(Table[1][8],4)+" "+DoubleToStr(Table[1][9],4)+" "+DoubleToStr(Table[1][10],4)+" "+DoubleToStr(Table[1][11],2)+" "+DoubleToStr(Table[1][12],0)+" "+DoubleToStr(Table[1][13],0)+" "+DoubleToStr(Table[1][14],2)+" "+DoubleToStr(Table[1][15],2)+" "+DoubleToStr(Table[1][16],0);
string Line4 = DoubleToStr(Table[1][7],0);
string Line5 = "";
string Line6 = "";
string Line7 = "";
string Line8 = "";
string Line9 = "";
string Line10 = "";


Comment(
Line1,
"\n", Line2,
"\n", Line3,
"\n", Line4,
"\n", Line5,
"\n", Line6,
"\n", Line7,
"\n", Line8,
"\n", Line9,
"\n", Line10


);
}

Reason: