I've been searching for ages and can't find the VB.NET version of 'type':
How would I do that in VB.NET?Code:private Type MyVars
hours as byte
minutes as byte
End Type
TIA
Printable View
I've been searching for ages and can't find the VB.NET version of 'type':
How would I do that in VB.NET?Code:private Type MyVars
hours as byte
minutes as byte
End Type
TIA
Use a structure.
Structure Point
Public x, y As Integer
Public Sub New(x As Integer, y As Integer)
Me.x = x
Me.y = y
End Sub
End Structure
Look up structures in the msdn library for more information about them. They are almost like objects, but not...lol.
http://msdn.microsoft.com/library/de...AndClasses.asp
Here is what you asked converted:
Private Structure MyVars
Public hours As Byte
Public minutes As Byte
End Structure
Thanks