When converting VB6 code to VB 2005, I get some conversions that are in the form "VB6.FixedLengthString(cintBufferSize)". This usually occurs in a Type declaration where a string has to be of a certain length. What does this mean, and what would be the correct format to use in a Structure in VB 2005
Thanks,
Mike

VB6.FixedLengthString(intBufferSize)
duancg
c699976
if a string has to be of a fixed length, you can either:
1) use a stringbuilder and specify a specific capacity (and best practice to do this for handling strings)
2) take a look at this:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvbpj01/html/gs0601.asp
I guess from reading it, you can specify the "space" length:
Dim theString as String = Space(length)
where length is the capacity you wish to assign to the string variable
does this help
VincentITA
The Space(length) format did the trick.
Thanks,
Mike