Convert VB6 Type To .NET Structure by:Anonymous
|
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
Any suggestions would be appreciated. Thanks!
Dan
|
| | Reply: by:One Handed Man \( OHM - Terry Burns \)
|
| | The syntax is incorrect, what are you expecting to happen with this line.?
|
| | Reply: by:Ken Tucker [MVP]
|
| | 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
|
| | Reply: by:Anonymous
|
| | Ken,
Thanks for the quick response. That did the trick. I really appreciate it.
Dan
|
0 Comments:
Post a Comment