Chap 3, "Length of String"
on page 55, the authors instruct to write:
'Get the text from the TextBox
strData = txtString.Text
...but i get an error saying, "Name txtString is not declared."
Here's what I've typed in Visual Studio:
'declare variable
Dim strData As String
'get text from textbox
strData = txtString.Text
'display length of the string
MessageBox.Show(strData.Length & " character(s)", "Length")
any suggestions?
|