String characters count

mistaken_myst

Active member
Joined
Oct 29, 2007
Messages
25
Programming Experience
Beginner
(ok sory, I just posted a Topic & removed since I found some extra notes.)
Reintroducing myself.
Hello, I'm new here & new to Visual Basic.Net.
(I hav been been learning Java & so I tend to think in Java code).

Well, I know how to use visual basic Forms, components & connecting databases etc...
What I don't know is: many basic codes needed for many functions I need to do like:

I want to know how can I calculate how many characters is contained by a String. Can someone help me please?
 
Here's an example.

VB.NET:
Dim sample As String = "1234"
' To get the number of characters use the 'Length' property of the string
Messagebox("samples string has " & sample.[B]Length[/B].ToString & " characters.")
 
Back
Top