Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I start a new line in a textbox using code

Status
Not open for further replies.

Horrid

Programmer
May 20, 1999
373
I am writing a util that allows a user to create a web page from a database. it is very basic and not at all flexible. My solution is to have code write the HTML into a rich text box but I can't work out how to get the code to add a line break so all my html is on one line. How do I do it? Or is there a better solution?
 
I haven't actually tried this, but doesn't one of these work?<br>
<br>
sString= sStringBefore & vbcrlf & sStringAfter<br>
or<br>
sString= sStringBefore & chr(10) & sStringAfter<br>
<br>
I think the number is 10.<br>
<br>

 
sString= sStringBefore & vbcrlf & sStringAfter<br>
<br>
should work fine<br>
<br>
I would imagine that your next problem is - how do I break the HTML into sensible lines.<br>
<br>
-ml<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top