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

后端 未结 7 1135
感动是毒
感动是毒 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:18

    Define UDF (public type) in a module:

    Public Type TPVArticulo
        Referencia As String
        Descripcion As String
        PVP As Double
        Dto As Double
    End Type
    

    and use Friend in class, module o frm:

    Friend Function GetArticulo() As TPVArticulo
    

提交回复
热议问题