How to create optional values for CommandEventArgs

R

ree32

Its just that I need to use a sub in another part of code. But this
isn't triggered by the user. So how do I make the parameters of the
sub have a default value for CommandEventArgs.

This is what I have so far ...

Sub getData(Optional ByVal sender As Object = 0, Optional ByVal e As
CommandEventArgs )

its asking me to a default value for CommandEventArgs.

__

Is this possible in the first place, or do I have to have a call to
another function in the command event sub.

Sub getData(ByVal sender As Object, ByVal e As CommandEventArgs )
calltoFunction()
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top