Information générale
Catégorie:
Conception classe
Versions des environnements
Network:
Windows 2000 Server
>>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?
Hi,
Register the Microsoft Visual .NET Compatibility Runtime (Microsoft.VisualBasic.Compatability.DLL)
Import Microsoft.VisualBasic.Compatibility.VB6
HTH,
Viv
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement