Hi, > Sometime user press "enter" while he fills the text area. > And this will be written as new line(s) in the text file . > My question is: How to join this line(s) back into 1 line > ... > String = Replace(String, "" & vbCr & "", " ")
A carriage return on a windows system is actually a combination of Carriage Return and Line Feed. The VBS constant for this is vbCrLf. Try replacing the vbCr from your code with vbCrLf and see how that works for you. Regards, Shawn K. Hall http://ReliableAnswers.com/ '// ======================================================== We fear things in proportion to our ignorance of them. -- Livy ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
