VB.Net Strings.RTrim()

RTrim(ByVal str As String) As String
Returns a string containing a copy of a specified string with no leading spaces (LTrim), no trailing spaces (RTrim), or no leading or trailing spaces (Trim).

Return Values :
Returns a string containing a copy of a specified string with no leading spaces (LTrim), no trailing spaces (RTrim), or no leading or trailing spaces (Trim).


Ex : 

Strings.RTrim("vbcodesblog ") returns vbcodesblog


 Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click
        MsgBox(Strings.RTrim("vbcodesblog "))
    End Sub
 End Class


When you execute this code, you will get vbcodesblog in the MessageBox
Anda baru saja membaca artikel yang berkategori VB.Net dengan judul VB.Net Strings.RTrim(). Anda bisa bookmark halaman ini dengan URL http://vbcodesblog.blogspot.com/2011/04/vbnet-stringsrtrim.html. Terima kasih!
Ditulis oleh: Farray Cool - Thursday, April 08, 2010

Belum ada komentar untuk "VB.Net Strings.RTrim()"

Post a Comment