| | |
How to Remove Newline character from a VB String
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
•
•
It's a problem with my code (BAH):
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
if right(SearchString, 1) = chr(13) or right(SearchString, 1) = chr(10) then ' /* Should be Left, Not Right */ SearchString = left(SearchString, len(SearchString) -1) end if
I assume you will run this if statement twice because you could have both characters at end of line ?
Denis
![]() |
Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: ADO replace value function
- Next Thread: Problem with timer (urgent)
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





