PC Review


Reply
Thread Tools Rate Thread

Chr$(13) in .NET?

 
 
Eddie B.
Guest
Posts: n/a
 
      12th May 2004
Does anyone know how to do Chr$(13) in .NET?

Thanks,

Eddie


 
Reply With Quote
 
 
 
 
Armin Zingler
Guest
Posts: n/a
 
      12th May 2004
"Eddie B." <(E-Mail Removed)> 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



 
Reply With Quote
 
Konrad L. M. Rudolph
Guest
Posts: n/a
 
      12th May 2004
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/
 
Reply With Quote
 
Charles Law
Guest
Posts: n/a
 
      12th May 2004
Hi Eddie

As well as other answers, you also have

Convert.ToChar(13)

HTH

Charles


"Eddie B." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Does anyone know how to do Chr$(13) in .NET?
>
> Thanks,
>
> Eddie
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      12th May 2004
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


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      12th May 2004
* "Eddie B." <(E-Mail Removed)> scripsit:
> Does anyone know how to do Chr$(13) in .NET?


'Chr(13)'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      12th May 2004
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
////


 
Reply With Quote
 
Eric Sabine
Guest
Posts: n/a
 
      12th May 2004
LOL!


"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
> ////
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      12th May 2004
* "Cor Ligthert" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      13th May 2004
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:50 PM.