Kontakt
DSVGO
Function TrimWS(ByRef Text As String) As String 'Deklarationen: Dim iStart As Long Dim iEnde As Long 'Start suchen: For iStart = 1 To Len(Text) If Asc(Mid$(Text, iStart, 1)) > vbKeySpace _ Then Exit For Next iStart 'Ende suchen: For iEnde = Len(Text) To iStart + 1 Step -1 If Asc(Mid$(Text, iEnde, 1)) > vbKeySpace _ Then Exit For Next iEnde 'Fertig: TrimWS = Mid$(Text, iStart, iEnde - iStart + 1) End Function
© Jost Schwider, 13.08.2000-13.08.2000 - http://vb-tec.de/trimws.htm