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

Chr$(13) in .NET?

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

Thanks,

Eddie
Nov 20 '05 #1
11 5007
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Eddie B. | last post by:
Does anyone know how to do Chr$(13) in .NET? Thanks, Eddie
6
by: C L Humphreys | last post by:
Hi, I'm trying to concatenate address fields and insert a LF&CR after each line. The SQL I use is based on select address1 & chr(10) & chr(13)& address2 & chr(10) & chr(13)& address3 & ...
1
by: jdph40 | last post by:
I am trying to enter text to look like paragraphs in a text box on a report, making it look like a memo. I enter (Chr$(13) & Chr$(10) & Chr$(10)) to insert a carriage return and 2 line breaks, but...
2
by: lauren quantrell | last post by:
Has anyone cunstructed a function to remove multiple carriage returns and replace it with a single return? Replace(mytext, Chr(13) & Chr(10) & Chr(13) & Chr(10), Chr(13) & Chr(10)) ... only...
2
by: MLH | last post by:
I run the following command in main menu form open event code... Me!MainMenuLabel.Caption = DLookup("", "qryAdminList") & Chr$(10) & Chr$(13) & DLookup("", "qryAdminList") & Chr$(10) & Chr$(13)...
3
by: Alberto | last post by:
In a application in visual basic 6 I had chr$(13). How can I get the same value in C#? Thank you
2
by: crjunk | last post by:
I have the following code in my web page. Dim tmpReplace As String 'Giving tmpReplace the value from the textbox on the webform. tmpReplace = txtComments.Text.Trim 'Prevents report from...
10
by: Dan Nash | last post by:
Lo, In a previous version of an app, I used replace to convert multiline text boxes to something easier to put in a database, and then i used replace(chr(13), "<br>") when i needed to show the...
1
by: Felix | last post by:
We have a problem with the Chr(13) and WebServices (we are using VB.NET 2003). If we have a string that contains the Chr(13) and the Chr(10) (just the vbCrLf characters) and we pass it through a...
5
by: Computer Guru | last post by:
I have a form I'm using as a dialog box. It has default text that is two paragraphs. It has a function setText(byval text as string) that specifies the text in the read-only textbox that's on...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.