>Why wouldn't you use something to the affect of PadLeft or PadRight or Substring?
>
>
>string s = "Database"; // You really only allow 4 characters here
>Console.WriteLine(s.Substring(4)); // This gives you only first 4
>Console.WriteLine(s.PadLeft(10)); // increases the length of your string...
>
Thst IS what I am using. But It's extra work to write a method with all the "testing" required for length of a string to make sure it is the correct length, when in VB6, it was all automatic.
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook