Mega Code Archive

 
Categories / VB.Net / Data Types
 

Removes all leading and trailing occurrences of a set of characters

Module Example    Public Sub Main()       Dim charsToTrim() As Char = { "*"c, " "c, "'"c}       Dim banner As String = "*** this is a test***"       Dim result As String = banner.Trim(charsToTrim)       Console.WriteLine(result)    End Sub End Module