Message 1 of 5
vbcrlf equivalent in c#

Not applicable
09-10-2009
05:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Searching for hours in the help for c# couldn't find anything under carriage
return or line feed
Finally used reflector to look at a vb code snippet and found
ChrW(13) + ChrW(10)
as in
ed.WriteMessage(btr.Name + ChrW(13) + ChrW(10))
however when i put that in code error says ChrW doesn't exist in this
namespace
so search in help for ChrW under c# and find the method which says it's
under Strings.ChrW
but when I added strings. i get error that Strings isn't in namespace
in the help page Filtered by C# entering chrw in index pulls up a page
saying it's visualbasic
and the strings class is under microsoft.visualbasic namespace...but i'm
trying to do it in c# so i'm a bit confused
finally at the end of that method description it shows function defs for
diff langs
i had to enter a function def
public static char ChrW(
int CharCode
)in order to use chrw but i dont' think that should be required????also i
had to change & to + to concatenate the chrw returnwhat am i missing?thanks
mark
return or line feed
Finally used reflector to look at a vb code snippet and found
ChrW(13) + ChrW(10)
as in
ed.WriteMessage(btr.Name + ChrW(13) + ChrW(10))
however when i put that in code error says ChrW doesn't exist in this
namespace
so search in help for ChrW under c# and find the method which says it's
under Strings.ChrW
but when I added strings. i get error that Strings isn't in namespace
in the help page Filtered by C# entering chrw in index pulls up a page
saying it's visualbasic
and the strings class is under microsoft.visualbasic namespace...but i'm
trying to do it in c# so i'm a bit confused
finally at the end of that method description it shows function defs for
diff langs
i had to enter a function def
public static char ChrW(
int CharCode
)in order to use chrw but i dont' think that should be required????also i
had to change & to + to concatenate the chrw returnwhat am i missing?thanks
mark