Chr$(13) in .NET?

  • Thread starter Thread starter Eddie B.
  • Start date Start date
Eddie said:
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).
 
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
 
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
////
 
* "Cor Ligthert said:
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".
 
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
 
* "Cor Ligthert said:
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.
 
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/[email protected]

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

:-)

Cor
 
Back
Top