vb.net remove character from string code example
Example 1: C# copy string except for last letter
using System;
class Program
{
static void Main()
{
string input = "OneTwoThree";
string sub = input.Substring(0, input.Length - 5);
Console.WriteLine("Substring: {0}", sub);
}
}
Output
Substring: OneTwo
Example 2: how to remove characters from the end of a string visual basic
myString = myString.Substring(0, myString.length - 1)