Author | Message | Time |
---|---|---|
CrAz3D | vb6 This is my string: [code] bob OP cheese OS 2xx-craz3d MOSXLEIP me OF [/code] It has a blank line @ the top as you can see. How would I remove this blank line, any ideas? I tried Replace(string, " ", "word") but then realized that there are other spaces that need to stay. | January 1, 2004, 1:12 AM |
hismajesty | Open the text file, move your cursor to the line that's blank, hit 'del' | January 1, 2004, 1:15 AM |
Grok | If it is a blank line, and not one with a space ... Buffer = Replace(buffer, vbCrlf & vbCrlf, vbCrlf) | January 1, 2004, 5:53 AM |
CrAz3D | OOh, thank you. I also got this from CupHead: [code]While Left(UserList, 2) = vbCrLf UserList = Right(UserList, Len(UserList) - 2) Wend[/code] | January 1, 2004, 4:09 PM |
Grok | [quote author=CrAz3D link=board=31;threadid=4541;start=0#msg37895 date=1072973379] OOh, thank you. I also got this from CupHead: [code]While Left(UserList, 2) = vbCrLf UserList = Right(UserList, Len(UserList) - 2) Wend[/code] [/quote] His loop is better because it gets rid of all blank lines, where the single replace gets rid of only scattered instances. | January 1, 2004, 4:36 PM |
CrAz3D | Ok, thank you | January 1, 2004, 7:47 PM |