Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 4th, 2006, 02:56 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 244
Thanks: 3
Thanked 4 Times in 4 Posts
Default How to do line breaks!

Here is a piece of code:

Code:
rtb.Text = rtbText + "<table><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></table>"
now it's all one line and when it's executed, prints as one line but I want it to print like this:

Code:
<table>
(tabindent)<tr>
(tabindent)(tabindent)<td>
(tabindent)(tabindent)</td>
(tabindent)(tabindent)<td>
(tabindent)(tabindent)</td>
(tabindent)(tabindent)<td>
(tabindent)(tabindent)</td>
(tabindent)</tr>
(tabindent)<tr>
(tabindent)(tabindent)<td>
(tabindent)(tabindent)</td>
(tabindent)(tabindent)<td>
(tabindent)(tabindent)</td>
(tabindent)(tabindent)<td>
(tabindent)(tabindent)</td>
(tabindent)</tr>
(tabindent)<tr>
(tabindent)(tabindent)<td>
(tabindent)(tabindent)</td>
(tabindent)(tabindent)<td>
(tabindent)(tabindent)</td>
(tabindent)(tabindent)<td>
(tabindent)(tabindent)</td>
(tabindent)</tr>
cheers for any help


------------------------------------------------
Apocolypse2005
Always ready and waiting to help!
__________________
Apocolypse2005, I'm a programmer - of sorts.
 
Old December 4th, 2006, 03:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Hi there..

you have vbnewline and vbtab as constants to use when you append text...

something like:

"<table>" & vbnewline & vbtab & "<tr>" & vbnewline & vbtab & vbtab & "<td>"... and the rest...


HTH

Gonzalo
 
Old December 11th, 2006, 03:20 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 244
Thanks: 3
Thanked 4 Times in 4 Posts
Default

Thank you very much!!

------------------------------------------------
Apocolypse2005
Always ready and waiting to help!





Similar Threads
Thread Thread Starter Forum Replies Last Post
line breaks mister_mister XSLT 14 March 17th, 2008 12:55 PM
Line Breaks in Access? chroniclemaster1 Access 0 February 13th, 2008 04:55 AM
Line breaks question gkirk Beginning PHP 2 February 27th, 2005 10:40 AM
Want to detect line breaks conundrum Classic ASP Basics 1 October 3rd, 2003 04:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.