by Rodney Safe Computing (Tiger Software) (6 Submissions)
Category: VB function enhancement
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
Make a class that raises an event
Public Event BadSsn(ByVal bad_ssn As String)
Raise it as in:RaiseEvent BadSsn(ssn)
In the main program, declare an instance of the class WithEvents so the program can catch the event.
Have fun. Rodney Godfried
Download EventRaise (2 KB)