473,386 Members | 1,883 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,386 software developers and data experts.

Replacing text in a String

I am a beginner programmer in VB and need help. If I have a string with a
return, how do I exchange the return with a return and tab?

Currently I am entering a string with EnterKeyBehavior enabled so I get text
and returns within the text string. However, I need to replace the return
string with return plus tab. How do I do this?

Thanks
Nov 21 '05 #1
3 1330
Toby,

There are different ways, I mostly do this kind of things just replacing the
standard ASCI code what is used for that.

By instance chr(13) is the Cariage return CR

http://msdn.microsoft.com/library/de...es_chart_1.asp

I hope this helps,

Cor

"TobyD" <To***@discussions.microsoft.com> schreef in bericht
news:99**********************************@microsof t.com...
I am a beginner programmer in VB and need help. If I have a string with a
return, how do I exchange the return with a return and tab?

Currently I am entering a string with EnterKeyBehavior enabled so I get
text
and returns within the text string. However, I need to replace the return
string with return plus tab. How do I do this?

Thanks

Nov 21 '05 #2
Great but what vb command do I use to actually pull apart the text to do
this?

Thanks for your help

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:OD**************@TK2MSFTNGP09.phx.gbl...
Toby,

There are different ways, I mostly do this kind of things just replacing
the standard ASCI code what is used for that.

By instance chr(13) is the Cariage return CR

http://msdn.microsoft.com/library/de...es_chart_1.asp

I hope this helps,

Cor

"TobyD" <To***@discussions.microsoft.com> schreef in bericht
news:99**********************************@microsof t.com...
I am a beginner programmer in VB and need help. If I have a string with a
return, how do I exchange the return with a return and tab?

Currently I am entering a string with EnterKeyBehavior enabled so I get
text
and returns within the text string. However, I need to replace the
return
string with return plus tab. How do I do this?

Thanks


Nov 21 '05 #3
Great but what vb command do I use to actually pull apart the text to do
this?
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:OD**************@TK2MSFTNGP09.phx.gbl...
Toby,

There are different ways, I mostly do this kind of things just replacing
the standard ASCI code what is used for that.

By instance chr(13) is the Cariage return CR

http://msdn.microsoft.com/library/de...es_chart_1.asp

I hope this helps,

Cor

"TobyD" <To***@discussions.microsoft.com> schreef in bericht
news:99**********************************@microsof t.com...
I am a beginner programmer in VB and need help. If I have a string with a
return, how do I exchange the return with a return and tab?

Currently I am entering a string with EnterKeyBehavior enabled so I get
text
and returns within the text string. However, I need to replace the
return
string with return plus tab. How do I do this?

Thanks


Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jerry Werner | last post by:
I need to replace my email address on hundreds of web pages with a new address (in a graphic, not a mailto) in order to thwart the email harvesters that spammers are using. Ideally, I'd like to do...
5
by: tmb | last post by:
I need to search a folder & sub-folders for key words in ASP files... I can open the files with Notepad and see the text string there... But when I try to navigate to the folder with Windows...
2
by: charlie_M | last post by:
I have the following code: <script type=text/javascript> function hide_tooltip(){ var hp = document.getElementById("tooltipper"); hp.style.left=0; hp.style.top=0; hp.style.width=1;...
2
by: UJ | last post by:
I have need to convert a text string (with formatting) to an image. This is so that I can resize the image to different sizes and the formatting stays exactly the same regardless of the size. I...
1
by: contact | last post by:
Hi, I'm trying to use the following to replace a text string in all the links on a page: var arrLinks = document.links; for(var LinkIterator = 0; LinkIterator < arrLinks.length; LinkIterator++)...
25
by: electrixnow | last post by:
in MS VC++ Express I need to know how to get from one comma delimited text string to many strings. from this: main_string = "onE,Two,Three , fouR,five, six " to these: string1 =...
5
by: geotso | last post by:
Here is the scenario: 1. I have a table (tblCalendar) with the following fields: caldID caldDate caldTitle caldInfo nWinW nWinH
3
by: baxy77bax | last post by:
hi, i have a question about replacing text after a defined string. for example : the text goes. ##|######|#######_##| ########... ##|######|#######_##|########... ...
4
by: wildman | last post by:
RE: Replacing Text without changing case?? This code works great, but case has to be exact. Research.Text = Research.Text.Replace(textboxSearch.Text, "<b>" + textboxSearch.Text + "</b>") ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.