, 11 2018 . 22:16
+
, !
Public Type .
+ |
'
Public Type AlterParams
NameFrmWork As String
LineId As Long
TypeComm As Long
TypeWork As Long
End Type
|
, Predeclared, , :
+ |
Public Event Alteration(ByVal MyFrm As String, ByVal TypeWork As Long, ByVal LineId As Long, ByVal TypeBtn As Long, ByVal ParentWin As Long)
'---------------------------------------------------------------------------------------
' Procedure : RaiseAlteration
' Purpose :
'---------------------------------------------------------------------------------------
Public Sub RaiseAlteration(ByVal MyFrm As String, ByVal TypeWork As Long, ByVal LineId As Long, ByVal TypeBtn As Long, ByVal ParentWin As Long)
RaiseEvent Alteration(MyFrm, TypeWork, LineId, TypeBtn, ParentWin)
End Sub
'---------------------------------------------------------------------------------------
' Procedure : Instance
' Purpose :
'---------------------------------------------------------------------------------------
Public Property Get Instance() As clsAlterationService
Set Instance = Me
End Property
|
... .
Public Event Alteration(AlterParam As AlterParams)
'---------------------------------------------------------------------------------------
' Procedure : RaiseAlteration
' Purpose :
'---------------------------------------------------------------------------------------
Public Sub RaiseAlteration(AlterParam As AlterParams)
RaiseEvent Alteration(AlterParam) '-->
End Sub
.
- , ,
Private, :
- , .
?
..
http://www.sql.ru/forum/1305193/peredat-svoy-type-v-cherez-event