Microsoft
Software
Hardware
Network
Question : count total lines or "returns" from a string of text
I have a string of text retrieve from the database which i retrieve and populate a textbox.
Issue:
Me.TextBox.Text = list -A -B -C 'String of text from database'
I need to count how many "returns"(new lines) does the string of text contain so i can then do something like
Me.TextBox.Rows = Line of text
so in my textbox i will see just how the user types it.
-A
-B
-C.
Thanks!
Answer : count total lines or "returns" from a string of text
Dim a As String = "list -A -B -C"
Dim Arr
Arr = Split(a, "-")
MessageBox.Show(UBound(Arr
))
Random Solutions
OpenRecordset
Add three colums together in sql to get a total
SCW & Exchange 2007
Can't solve mswrd632.wpc issue
Can't Open Network Connections on Windows Server 2000
How do you make outlook 2003 become "online"?
Spin with "autobuddy" and "set buddy integer" strange behavour
What is wrong with this query
Failed to run EXE files built with .Net Framwork . "The application failed to initialize properly (0xc000007b)"
Changing the case, Forcing all caps in a vb.net Windows app