Yet another tip of the day. I guess until I get an environment set up to go over my Filter Component I will be posting a lot of tips just so I keep the blog active. Be patient, it will be worth it when I get the project set up.
CHAR() was a useful function for taking an integer value and returning the Ascii equivalent from the value. There's a bit more to it in .Net, so here's a C# wrapper function to do the same. Once again, there's no error handling or validation, so if this is important to you (and it should be), caveat emptor.
public static string Char(int asciiCode)
{
Byte[] charBytes = {asciiCode};
return System.Text.Encoding.ASCII.GetString(charBytes);
}
-- Daryl
Powered by: newtelligence dasBlog 2.3.9074.18820
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2012, © Copyright 2010
E-mail