ftacoukj
asked on
String function returning first x characters
what string function will return first x characters of the string in vb.net?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
uh thats a C# style comment just ignore after the //
I tested it with the following code:
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim x As Int32 = 3
Dim str As String = "I'm a string"
Response.Write(str.Substri ng(0, x))
End Sub
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim x As Int32 = 3
Dim str As String = "I'm a string"
Response.Write(str.Substri
End Sub
Dim x As Int32 = 3
Dim str As String = "I'm a string"
str.SubString(0,x) // I'm