this in vb:
VB Code:
DressText = Trim(Str.Replace("º", "'"))
should be this in c#, right? this is in a function that returns a string:
VB Code:
return str.Trim(str.Replace("º", "'"));
it's telling me that a character can't be converted to a string?
Printable View
this in vb:
VB Code:
DressText = Trim(Str.Replace("º", "'"))
should be this in c#, right? this is in a function that returns a string:
VB Code:
return str.Trim(str.Replace("º", "'"));
it's telling me that a character can't be converted to a string?
try:
you don't need to pass the string to Trim(), because it's a member function. the compiler throught you were trying to specifying what characters to trim, and got upset because str wasn't a character / character array.Code:return str.Replace("º", "'").Trim();
that worked perfectly. I hope learning c# isnt as hard as learning vb was lol