Convert VB6 Type To .NET Structure

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good Day All,

I have the following VB6 Type

Type IAListRecordType
lID As Long
strName As String * IALISTSTRSIZE
End Type

I need to convert this to VB .NET. How do I do this? I have come up with

Structure IATaskListRecordType
Dim lID As Long
Dim strName As String * IATASKLISTSTRSIZE
End Structure

However, the * IATASKLISTSTRSIZE will not compile. I get a message

"End Of Statement Expected"

Any suggestions would be appreciated. Thanks!

Dan
 
The syntax is incorrect, what are you expecting to happen with this line.?
 
Hi,

The dotnet integer is the same as the old long. Replace any longs with
integers.

Structure IATaskListRecordType
Dim lID As Integer
<VBFixedString(IATASKLISTSTRSIZE)> Dim strName As String
End Structure

Ken
---------------
 
Back
Top