By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,061 Members | 1,539 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,061 IT Pros & Developers. It's quick & easy.

Replacing text in a String

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.