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

Chr$(13) in .NET?

P: n/a
Does anyone know how to do Chr$(13) in .NET?

Thanks,

Eddie
Jul 21 '05 #1
Share this Question
Share on Google+
16 Replies


P: n/a
Hi, Eddie

check Environment.NewLine

HTH
Alex

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

Thanks,

Eddie

Jul 21 '05 #2

P: n/a
u still able to use VbCr and VbLf as they was available in VB6. They still
works fine
Jul 21 '05 #3

P: n/a
As posted on the other group;

Actually, System.Environment.Newline is equivalent to "\r\n".

Chr$(13) is "\r". Chr$(10) is "\n"

Jul 21 '05 #4

P: n/a
guy can be scared by your "\r" and "\n"

dude, dont forget, that guy asked for VB stuff, so back to earth.

well, my post above is valid for this case.
Jul 21 '05 #5

P: n/a
<spider/> wrote:
guy can be scared by your "\r" and "\n"

dude, dont forget, that guy asked for VB stuff, so back to earth.


.... somehow seems to imply that programming VB means one is ... less abled.

--
Konrad -
http://madrat.net/
Jul 21 '05 #6

P: n/a
Absolutely, if you're using VB.NET - no problem.

Jul 21 '05 #7

P: n/a
<spider/> <bo********@yahoo.com> wrote:
guy can be scared by your "\r" and "\n"

dude, dont forget, that guy asked for VB stuff, so back to earth.


Where did he ask for VB stuff, at least in this post?

The question was also posted in the C# newsgroup, btw, which is a
fairly good reason for Jimi to believe he's interested in C#.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #8

P: n/a
well, guys, you just have to pay attention to what people writing to
you.....
Jul 21 '05 #9

P: n/a
<spider/> <bo********@yahoo.com> wrote:
well, guys, you just have to pay attention to what people writing to
you.....


So where exactly *did* he ask for the solution in VB? As far as I can
see he only said ".NET" which is very different from "VB.NET".

The only other posts I can see from him in this newsgroup have been
non-language-specific.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #10

P: n/a
Jon,

Have a look at this and especialy to my question to crosspost next time, to
Edie

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

For the rest I agree

Cor
Jul 21 '05 #11

P: n/a
Cor Ligthert <no**********@planet.nl> wrote:
Have a look at this and especialy to my question to crosspost next time, to
Edie
I entirely agree that cross-posting (or just posting once in the most
appropriate group) would have avoided the problem.
http://www.google.com/gr**************************************@news.free net.de

For the rest I agree


So he posted in a VB.NET group as well. Given that he posted in a C#
group, it's not unreasonable of a person who reads a C# group but not
the VB.NET group to think that he might want it in C#. I think
<spider/>'s post was rather rude, considering that even within the
VB.NET group Eddie didn't specifically ask for "VB stuff".

This is obviously a good demonstration of how multi-posting causes
problems - but that's not (IMO) a good reason for <spider/> to have
been rude.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #12

P: n/a
well, i dont f*ing. care abour xposts and whatever, for last 12 years iv
seen more then enough stuff that makes people nervouse, for me it's just a
daily crap.

so guy, da stupid question is, have u ever seen, that c++ or c# had function
titled **Chr$()** and guy specified Chr$(13), not a &hd, not a 0x0D or
whatever, its was just bloody basic 13 with basic Chr$.

i just dont like messing arround, things are simple, its black or white or
dead or not, its not about being rude, im not, im just pissed off sometimes
about flaming for no reason.

u dont need to answer, i'm not going to do it anyway too.

have a good byte-messing.
Jul 21 '05 #13

P: n/a
How about a group hug?

--
William Stacey, MVP

"<spider/>" <bo********@yahoo.com> wrote in message
news:2g************@uni-berlin.de...
well, i dont f*ing. care abour xposts and whatever, for last 12 years iv
seen more then enough stuff that makes people nervouse, for me it's just a
daily crap.

so guy, da stupid question is, have u ever seen, that c++ or c# had function titled **Chr$()** and guy specified Chr$(13), not a &hd, not a 0x0D or
whatever, its was just bloody basic 13 with basic Chr$.

i just dont like messing arround, things are simple, its black or white or
dead or not, its not about being rude, im not, im just pissed off sometimes about flaming for no reason.

u dont need to answer, i'm not going to do it anyway too.

have a good byte-messing.


Jul 21 '05 #14

P: n/a
why not ;)
Jul 21 '05 #15

P: n/a
<spider/> <bo********@yahoo.com> wrote:
well, i dont f*ing. care abour xposts and whatever, for last 12 years iv
seen more then enough stuff that makes people nervouse, for me it's just a
daily crap.

so guy, da stupid question is, have u ever seen, that c++ or c# had function
titled **Chr$()** and guy specified Chr$(13), not a &hd, not a 0x0D or
whatever, its was just bloody basic 13 with basic Chr$.
That shows he's coming *from* a VB environment. There are plenty of ex-
VB programmers who are no using C#.
i just dont like messing arround, things are simple, its black or white or
dead or not, its not about being rude, im not
Yes, you were rude. You suggested that people weren't paying attention
when they were - they just weren't reading all the groups you were,
just as you weren't reading all the groups they were.
im just pissed off sometimes about flaming for no reason.


That's exactly what I'm annoyed about too - you flamed Jimi (slightly)
for no good reason.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #16

P: n/a
Hi Spider,

You cannot say that Jon and I have often the same idea's and in my opinion
that rude is a little bit overdone. It is in my opinion more that not every
bird has the same note.

However with the point I think he is right, I have always fun arguing with
Jon, so I was thinking first it is CHR so it is VB. However thinking that
Edie would have known the C# equivalent for this is very obvious, so I did
not tell that.

:-)

Cor
Jul 21 '05 #17

This discussion thread is closed

Replies have been disabled for this discussion.