SunQuest
 
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old October 26th, 2004, 10:07 AM
Nadoo8989 Nadoo8989 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 1 Nadoo8989 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Text Dilemna

I am currently creating a module in an access database. The Module sends out a long text string. The text is so long that it doesnt fit into one line alone(there is no more space). I wanted to know how I could continue this text to the next line. EX: stringtxt= "dsadfdsasd (then i cant go on becasue there is not more space). How do I continue the text on to the next line?

Reply With Quote
  #2  
Old October 26th, 2004, 11:19 AM
JamesLe JamesLe is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Oakland, CA, USA
Posts: 131 JamesLe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m
Reputation Power: 4
RE: Text Dilemna

Hello Nadoo8989,

You can use line continue _ operator and use the & operator to force string concatenation. Hope it will help. EX:

stringtxt = "abcd" & _
"efgh"

Reply With Quote
  #3  
Old October 26th, 2004, 06:55 PM
KenVandergriff KenVandergriff is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 23 KenVandergriff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 8 sec
Reputation Power: 0
continuation of text line in VBA

Quote:
Originally Posted by Nadoo8989
I am currently creating a module in an access database. The Module sends out a long text string. The text is so long that it doesnt fit into one line alone(there is no more space). I wanted to know how I could continue this text to the next line. EX: stringtxt= "dsadfdsasd (then i cant go on becasue there is not more space). How do I continue the text on to the next line?


Try this: stringtxt = "some really long text in here but we can continue it using the underscore character" _
& "we closed out the first part of the text, added the underscore to show that the line continues " _
& "then used the & symbol to concatinate the rest of the line in."


Note that there is a limit to the number of continuation lines in VB 6. I don't know for sure if that applies to VBA.

I hope this helps...

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Text Dilemna


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway