Answers for "remove last string in vb.net"

C#
1

vb.net remove last char from string

temp = temp.Trim().Remove(temp.Length - 1)
Posted by: Guest on May-01-2021
1

remove last instance of string c#

public static string ReplaceLastOccurrence(string Source, string Find, string Replace)
{
        int place = Source.LastIndexOf(Find);

        if(place == -1)
           return Source;

        string result = Source.Remove(place, Find.Length).Insert(place, Replace);
        return result;
}
Posted by: Guest on December-14-2020

Code answers related to "remove last string in vb.net"

C# Answers by Framework

Browse Popular Code Answers by Language