Types

  • Thread starter Thread starter Kim Madsen
  • Start date Start date
K

Kim Madsen

Hi, in VB I could create types like :

Public Type DEVMODE
dmDeviceName As String * CCHDEVICENAME
dmSpecVersion As Integer
dmPelsHeight As Long
dmDisplayFlags As Long
dmDisplayFrequency As Long
End Type

How do I do in VB.NET ??

Best regards

Kim
 
Remember in .Net all types are Objects So on it can be a Class or a
Structure ... Depends on what you figure to do ?

Bismark
 
Kim,
In addition to the others comments.

Type in VB6 is now Structure in VB.NET.

Integer in VB6 is now Short in VB.NET
Long in VB6 is now Integer in VB.NET

String * CCHDEVICENAME in VB6 is not supported per se in VB.NET, you can use
the Microsoft.VisualBasic.VBFixedStringAttribute in its place, however check
the online help for the proper usage & when it is actually used.

Hope this helps
Jay
 
Back
Top