how to fetch final digit in this label Ex:123456789 i need to get the value "9" in a string using vb.net

Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim sst As String
sst = "123456789"
Dim ssttt As String

ssttt = sst.Substring(sst.Length - 1)

End Sub
End Class

No comments:

Post a Comment

Plz Share your comments...