if you want to return structure or any object as a return value
use the following format in class file
Public Class ClassName
Public Structure StructName
'variables
End Structure
Public Function MethodName(....) As StructName
Dim structObject as StructName
Return structObject
End Sub
End Class
Then use the method in your class just like this
Dim retValues As New ClassName.StructName
Dim obj As New ClassName
retValues = obj .MethodName(....)
No comments:
Post a Comment