User Defined Type (UDT) as parameter in public Sub in class module (VB6)

后端 未结 7 1162
感动是毒
感动是毒 2020-12-04 22:41

I\'ve tried to solve this problem, but can\'t find any solution. I have a UDT defined in a normal module, and wanted to use it as parameter in a Public Sub in a

7条回答
  •  半阙折子戏
    2020-12-04 23:44

    Just Pass the UDT as Reference parametre and it will work. :)

    'method in the class
    
    Public Sub CreateFile(ByRef udt1 As UdtTest)
    
    End Sub
    

提交回复
热议问题