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
Exchange 2003 Private Store increased/decreased
Search function in Excel also in Access?
Migrating app from VB.net 2005 to VB.net 2008 SqlCeEngine compatibility issue needs fixed
Linked table question
NEGATE BIT
Access Query Design Where/Or Criteria Trouble (SQL Where)
How do I limit concurrent IE sessions for a Citrix user on Windows 2003 server?
A serious bug in the MFC exception handling on Windows CE
pause code in sql2008 through Access07
Using subquery to supply VALUE in INSERT statement