Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted
Actually CRLF is 13 and 10, not vice versa. Plus Chr() is part of the VB compatability library, so if you want to avoid it you could do something like this:
theString = theString.Replace(System.Text.Encoding.ASCII.GetString(New Byte() {13, 10}), "")

A little longer, but I personally try to write code that stays the same (except syntax of course) between VB.NET and C# - Chr() will not work in C#.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...