项目名称为STRU,类名称为CLASS1,代码如下
Public STRU Class1
Public FIRSTNAME As String
Public LASTNAME As String
Public EMAIL As String
End STRU
------解决思路----------------------
'定义类
Public Class CLASS1
'定义属性
Public Property a() As String
Get
Return m_a
End Get
Set
m_a = Value
End Set
End Property
Private m_a As String
'定义字段
Public b As String
'定义结构
Public Structure STRU
Public c As String
End Structure
End Class
如果帮助你理解了,就结个贴。