Tuesday, May 19, 2009

Vb6.FixedLengthString(2048) to Space(2048)

When we converted code from VB6 to .NET the following call was specified for a string that was a specific length

Dim astr as New VB6.FixedLengthString(2048)

In .NEt the replacement is
Dim aStr as String = New SpacE(2048)

This works just like the VB6. function call.

No comments: