468,491 Members | 2,009 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,491 developers. It's quick & easy.

Chr$(13) in .NET?

Does anyone know how to do Chr$(13) in .NET?

Thanks,

Eddie
Nov 20 '05 #1
11 4488
Eddie B. wrote:
Does anyone know how to do Chr$(13) in .NET?


ah, thought so ... ;-)

Well, generally Chr$() becomes Chr() in .NET.
Besides, the Microsoft.VisualBasic.Constants namespace provices you with
some nifty, well-known constants such as vbNewLine, vbCrLf, vbCr (which
is what you search).

--
Konrad -
http://madrat.net/
Nov 20 '05 #2
Hi Eddie,

Do us a favor, do not multipost in the dotnet groups, there is an answer in
the newsgroup dotnet.general,

When you crosspost (send one message in one time to more dotnet newsgroups),
we can see if there is already an answer and with that we have no problem.

Thanks for your cooperation in advance

Cor
Nov 20 '05 #3
Hi Eddie

As well as other answers, you also have

Convert.ToChar(13)

HTH

Charles
"Eddie B." <eb*****@earthlink.com> wrote in message
news:OU**************@TK2MSFTNGP12.phx.gbl...
Does anyone know how to do Chr$(13) in .NET?

Thanks,

Eddie

Nov 20 '05 #4
* "Eddie B." <eb*****@earthlink.com> scripsit:
Does anyone know how to do Chr$(13) in .NET?


'Chr(13)'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
"Eddie B." <eb*****@earthlink.com> schrieb
Does anyone know how to do Chr$(13) in .NET?


Chr(13)

- or -

vbCr

- or -

ControlChars.Cr
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
Hi Eddie or others do not take this serious.
-----------------------------------------------------------
Herfried,

Are you sure that chr function will not end in a while.

As I promished you, have I made another procedure more in your new style. It
saves typing the hr.

:-))

Cor

\\\
Public Module AustrianConverter
Dim C As New HKWConverter
Private Sub Main()
Dim HKW As Char = C(13)
End Sub
End Module
Public Class HKWConverter
Inherits System.Collections.CollectionBase
Public Sub New()
For i As Integer = 0 To 255
List.Add(Convert.ToChar(i))
Next
End Sub
Default Public Overloads ReadOnly _
Property Item(ByVal index As Integer) As Char
Get
Return DirectCast(list.Item(index), Char)
End Get
End Property
End Class
////
Nov 20 '05 #7
LOL!
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:ea**************@TK2MSFTNGP11.phx.gbl...
Hi Eddie or others do not take this serious.
-----------------------------------------------------------
Herfried,

Are you sure that chr function will not end in a while.

As I promished you, have I made another procedure more in your new style. It saves typing the hr.

:-))

Cor

\\\
Public Module AustrianConverter
Dim C As New HKWConverter
Private Sub Main()
Dim HKW As Char = C(13)
End Sub
End Module
Public Class HKWConverter
Inherits System.Collections.CollectionBase
Public Sub New()
For i As Integer = 0 To 255
List.Add(Convert.ToChar(i))
Next
End Sub
Default Public Overloads ReadOnly _
Property Item(ByVal index As Integer) As Char
Get
Return DirectCast(list.Item(index), Char)
End Get
End Property
End Class
////

Nov 20 '05 #8
* "Cor Ligthert" <no**********@planet.nl> scripsit:
Hi Eddie or others do not take this serious.
Are you sure that chr function will not end in a while.
What do you mean by 'End'? Being removed from the Visual Basic .NET
Runtime Library? Definitely no!
As I promished you, have I made another procedure more in your new style. It
saves typing the hr.

:-))

Cor

\\\
Public Module AustrianConverter
Dim C As New HKWConverter
Private Sub Main()
Dim HKW As Char = C(13)
End Sub
End Module
Public Class HKWConverter
Inherits System.Collections.CollectionBase
Public Sub New()
For i As Integer = 0 To 255
List.Add(Convert.ToChar(i))
Next
End Sub
Default Public Overloads ReadOnly _
Property Item(ByVal index As Integer) As Char
Get
Return DirectCast(list.Item(index), Char)
End Get
End Property
End Class
////


Typical "Cor style".

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #9
Hi Herfried,

I check this at you: does Google newsgroup automaticly skip OT messages?
(This nice procedure I made special for you is not in Google)

When that is so than you can wait on every OT message from you a certain
message.

Cor
Nov 20 '05 #10
* "Cor Ligthert" <no**********@planet.nl> scripsit:
I check this at you: does Google newsgroup automaticly skip OT messages?
(This nice procedure I made special for you is not in Google)
I don't know, but I don't think it does.
When that is so than you can wait on every OT message from you a certain
message.


BTW: There is a convention on how to change the title of a subject:

"Re: Foo is Good"

.... will become:

"OT: Foo is Good"

.... and when changing the subject:

"Goo is Better (was: Foo is Good)"

Just my 2 Euro cents.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #11
Hi Herfried,

This is this thread in Google, (There was a funny discussion in the general
group, while Jon started a discussion with someone who had a somewhat rude
reaction and Jon thought it had to be C# code because it was also
multiposted to the C# newsgroup while the other told it should be VB.net).
(Jon did understand it after that I showed this thread however not the rude
message and that I agree of course, although it was more a matter of tone).

http://www.google.com/gr**************************************@news.free net.de

The rest I think I understand, however I will look how you do it the next
time.

:-)

Cor

BTW: There is a convention on how to change the title of a subject:
"Re: Foo is Good"
... will become:
"OT: Foo is Good"
... and when changing the subject:
"Goo is Better (was: Foo is Good)"

Nov 20 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Eddie B. | last post: by
6 posts views Thread by C L Humphreys | last post: by
2 posts views Thread by lauren quantrell | last post: by
3 posts views Thread by Alberto | last post: by
10 posts views Thread by Dan Nash | last post: by
1 post views Thread by Felix | last post: by
5 posts views Thread by Computer Guru | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.