Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inherit From Intrinsic Data Types....?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01078380
Message ID:
01078764
Vues:
15
>Hi,
>
>>In VB6, you were allowed to declare a string at a specific size, and if you exceeded the size, it automatically truncated and if you were inserting a value less then the size, you would get trailing spaces, again automatically. I need to replicate that same ability. Is there any way, other then writing seperate methods to do this?
>
>There's always VB6.FixedLengthSring. Will that work for you ?
>
>Regards,
>Viv

Your suggestion actually helped me come across this "Attribute" < VBFixedString(Size)>. Unfortunately it does not work for "Local" variables. So that attribute doesn't help. But in response to your original suggestion, where do I find the VB6 namespace?
________________________
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform