Navaz

Navaz

  • NA
  • 96
  • 45.1k

string builder

Feb 11 2014 2:15 AM
MobileMessage.Append("OB ").Append(drow["OB"].ToString()).AppendLine();
MobileMessage.Append("purchase").Append(purchase.ToString()).AppendLine();
MobileMessage.Append("Total ").Append(drow["Total"].ToString()).AppendLine();
MobileMessage.Append("Paid ").Append(drow["Paid"].ToString()).AppendLine();
MobileMessage.Append("Balance ").Append(drow["Balance"].ToString()).AppendLine();
MobileMessage.Append("Fishco Kannur 9037685878");
 
out put like MobileMessage = {OB 0.00
purchaseESR & Co 15 Avoli 1500.00+
Total 1540.00
Paid 0.00
Balance 1540.00
Fishco Kannur 9037685878}
to avoid  MobileMessage = {,} from output

Answers (9)