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
website link takes me to the wrong website
MS Access custom help screens
Password security for linked tables in Access
FileZilla FTPS, Cisco ASA - 425 Can't open data connection.
Email forwarding problem
DomainPrep & 'unrecognized Exchange signature'?
Excel VBA Array within an Array
Accesing value of a grid cell from another cell
Merge Two Crosstab Queries
Compiling Data from Multiple Sheets to Single Sheet in Excel