+92 332 4229 857 99ProjectIdeas@Gmail.com

String.Length function (Vb.net)


String Length function
String.Length() is a function which is used to find the length of a string. It returns the total number of characters in the given string.
System.String is the library for this function.
 
Example
Dim str As String = "My name is Saad Bin Saulat"
Dim strLength As Integer = str.Length
MsgBox(strLength)
Result
It displays 26 in the message box.


Related articles

0 comments: