Call Event Procedure

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am having trouble calling a Double Click procedure for a text box from a
button click event. I can't seem to find anything in the help files that
will explain this error, "Wrong Number of Arguments". Has anyone had this
problem before?

Thanks,
 
Randy Christiansen said:
I am having trouble calling a Double Click procedure for a text box
from a button click event. I can't seem to find anything in the help
files that will explain this error, "Wrong Number of Arguments". Has
anyone had this problem before?

What code did you try? This works for me:

'----- start of example code ----
Private Sub Command2_Click()

Dim intCancel As Integer

Text0_DblClick intCancel

End Sub

'----- end of example code ----

The DblClick event procedure has a Cancel argument, so you have to
provide that when you call it.
 
Thank you for your help Dirk. I will try this and get back to you. I had no
idea the answer would come so quick.

Thanks again.
Randy
 
Back
Top