Hi experts
i want to set an event at runtime. I could'nt do it successfully so far.
The purpose is to set Form's OnTimer event on a button click.
[code=vb]
Private Sub Command35_Click ()
Me.Form.OnTimer = myFunc()
End Sub
Public Function myFunc() As Variant
'Return a string with all the code statements in it ????
'How to accomplish it ? what data type should be returned ?
End Function
[/code]
Thanks
Qi
i want to set an event at runtime. I could'nt do it successfully so far.
The purpose is to set Form's OnTimer event on a button click.
[code=vb]
Private Sub Command35_Click ()
Me.Form.OnTimer = myFunc()
End Sub
Public Function myFunc() As Variant
'Return a string with all the code statements in it ????
'How to accomplish it ? what data type should be returned ?
End Function
[/code]
Thanks
Qi
Comment