I use WinForms c#.I have string value like below,
string Something = \"1,5,12,34,\";
I need to remove last comma in a string. So How can i
Try below
Something..TrimEnd(",".ToCharArray());
Dim psValue As String = "1,5,12,34,123,12" psValue = psValue.Substring(0, psValue.LastIndexOf(","))
output:
1,5,12,34,123