|
-
Jul 25th, 2001, 05:42 PM
#1
Thread Starter
Hyperactive Member
textbox question
I have a textbox with a few lines of text in it. The problem is the first line of text is blank... I need to know how to remove it. For example, I want:
1) blehbleh
2) haha
3) roflrofl
but what I have in the text box is:
1)
2) blehbleh
3) haha
4) roflrofl
Just ignore the line numbers... I just need to get rid of the first blank line in the textbox. Any help is appreciated. Later,
-zer0 flaw
-
Jul 25th, 2001, 05:43 PM
#2
Text1.Text = "1) blabla" & vbcrlf & "2)rofl" & vbcrlf & "3)yaddayadda"
-
Jul 25th, 2001, 05:53 PM
#3
Thread Starter
Hyperactive Member
No, my textbox already has 4 rows of text in it. I need to get rid of JUST the first row. Is that possible?
-
Jul 25th, 2001, 05:56 PM
#4
VB Code:
Text1.Text = "Whatever" & Text1.Text
Text1.Text = Replace(Text1.Text, vbCrLf & vbCrlf, vbCrLf)
does that work?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 25th, 2001, 06:09 PM
#5
Thread Starter
Hyperactive Member
Here we go... lets see if anyone can do this: Can I open a file, delete the first line of text, and keep the rest of the text in the file?
-
Jul 25th, 2001, 06:28 PM
#6
VB Code:
Text1 = Mid(sDataFromFile, Instr(sDataFromFile, vbCrLf) + 2)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|