473,287 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Line too long

hey guys, i was trying put a really long line of text into a textbox (in code), but when i tried to put more in it automatically wrapped to the next line. how to i make it so the text on the next line will be a continuation of the text on the first line. (i dont mind if they're on two seperate lines in the actual textbox.)

here's my code:

Private Sub construct_Click()

[LINE ONE] RSSFEED.Text = "<?xml version=""1.0"" encoding=""UTF-8""?><rss xmlns:itunes=""http://www.itunes.com/dtds/podcast-1.0.dtd"" version=""2.0""> <channel> <title> " + chtitle.Text + " </title> <description>" + chdescription.Text + "</description> <link>" + chwebsite.Text + "</link> <language>" + languagecountry.Text + "</language> <copyright>Copyright 2006</copyright> <lastBuildDate>Fri, 23 Jun 2006 11:30:00 -0400</lastBuildDate> <pubDate>Fri, 23 Jun 2006 11:30:00 -0400</pubDate> <docs>http://blogs.law.harvard.edu/tech/rss</docs> <webMaster>" + email + "</webMaster> <itunes:author>" + name + "</itunes:author> <itunes:subtitle></itunes:subtitle> <itunes:summary></itunes:summary> <itunes:owner><itunes:name>" + name + "</itunes:name> <itunes:email>" + email + "</itunes:email> </itunes:owner> <itunes:explicit>No</itunes:explicit> <itunes:category text=""Technology""> <itunes:category text=""Podcasting""/> </itunes:category> <item> <title>" + podtitle + "</title> <link>" + chwebsite.Text + "</link> " *THIS WAS ALL ON ONE LINE*
[LINE TWO] <guid>soundfile</guid>"


End Sub
Jul 5 '06 #1
3 6205
sashi
1,754 Expert 1GB
Hi there,

well.. set the multiline properties to true.. give it a try.. good luck my fren..
Jul 10 '06 #2
BSOB
77
multiline isnt the problem, the compiler just wont take the line. two ways to fix that:
1) use the _. the underscore tells vb that the next line is also part of this line. example:
RSSFEED.Text="when i get home i talk on the phone and eat food and watch television _
and walk my dog and do homework and make sure i dont have any run on _
sentences because that would just be terrible gammar on my part and i wouldnt _
want people to think i talked badly, y'know?"

2) use the & sign to append stings. 'and' tells the compiler to 'stick' this string on the other of that string. just like string=string1 & string2. this is the less favorable solution but if proformance doesnt matter then:

dim finalstring as string
finalstring = "when i get home i talk on the phone and eat food and watch television"
finalstring = finalstring & " and walk my dog and do homework and make sure i "
finalstring = finalstring & "dont have any run on sentences because that would just "
finalstring = finalstring & "be terrible gammar on my part and i wouldnt want people"
finalstring = finalstring & " to think i talked badly, y'know?"
RSSFEED.Text=finalstring
Jul 15 '06 #3
candice
11
Hi Thread,

My be use also can use the tool richtextbox in the component. then u need go to add in the component side.(crt+T) . This rixhtextbox is function as multiline.
some like the text box. easy to use
Hope my suggestion can help u . Good luck
Jul 17 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Kathryn | last post by:
Good morning! I am having a problem with a span. I have items, of which I only want to show the first X characters on the screen. If the user prints the page, I want the entire item to print....
1
by: John Baker | last post by:
I have an Access frontend that controls the running of several MS SQL Server DTS packages (among other things). I dynamically build a command line for dtsrun, and then use the ShellWait command...
65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
9
by: Steve Long | last post by:
Hello, (total GDI newbie) I'm having trouble drawing just a simple line to display in a picturebox. I just want a straight, dotdash line. I have two methods, one works and one doesn't (it cause...
22
by: DraguVaso | last post by:
Hi, For my application I need the following behavior: When I press F4 the cursor has to move to the next line in my multiline textbox which begins with "0". Finding lines starting with 0 isn't...
13
by: Martijn Mulder | last post by:
I try to define a line with the length of 1 unit (1 pixel) that is, in fact, just a point on the screen. But when I draw it with a wide pen with the appropriate StartCap and EndCap (Round), it will...
9
by: Adi | last post by:
Hello eveyone, I wanna ask a very simple question here (as it was quite disturbing me for a long time.) My problem is to read a file line by line. I've tried following implementations but still...
8
by: Harris Kosmidis | last post by:
It seems I cannot understand CSS, well. I have donw the following page: http://www.pennias.gr/home.php It's in greek but the context is of no importance. I used a big table to put in my page...
1
by: Joe Strout | last post by:
On Nov 19, 2008, at 3:27 PM, Mohsen Akbari wrote: Appears that way where? Using what tool to view it? My guess is that there is nothing wrong with the file, but that whatever you're using...
0
by: Matthew Barnett | last post by:
Steve Holden wrote: 20 Some text editors can display very long lines, others can't and just wrap them when displaying. Notepad can't.
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.