Option Explicit
Private Type xxx
x As String
y As String
End Type
Private Sub Form_Load()
Dim yyyy As xxx
yyyy = ggg()
End Sub
Private Function ggg() As xxx
Dim a As xxx
a.x = 0
a.y = 1
ggg = a
End Function
给你个例子。希望有帮助。
Private Type xxx
x As String
y As String
End Type
Private Sub Form_Load()
Dim yyyy As xxx
yyyy = ggg()
End Sub
Private Function ggg() As xxx
Dim a As xxx
a.x = 0
a.y = 1
ggg = a
End Function
给你个例子。希望有帮助。
[email protected]
a as string
b as stirng
end typeprivate function g() as xx
...............
...............
g=............
end functionprivate sub sample()
dim a as xx
a=g()
end sample