Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inherit From Intrinsic Data Types....?
Message
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
VB.NET 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01078380
Message ID:
01078743
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform