Formatting a string

hello all,

Can u please tell me quivalent of below string in C#.NET

strVehiNumber & " " & strVehiLocation & Chr(13) & strVehiTime & Chr(13) &strVehiSpeed & " Kmph"

specifically,How to insert chr(13) in my C#.NET string

Thanks ,

Anil Dhiman




Answer this question

Formatting a string

  • Mike Heffernan

    Anil,

    I belive that the string in C# is a follows

    string s = strVehiNumber + " " + strVehiLocation + (Char)13 + strVehiTime + (Char)13 + strVehiSpeed + " Kmph";

    Regards,

    Vallari Kamble (VB team)


  • Formatting a string