Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to create optional values for CommandEventArgs

Reply
Thread Tools

How to create optional values for CommandEventArgs

 
 
ree32
Guest
Posts: n/a
 
      09-02-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
What's your experience with optional values? DeMarcus C++ 24 01-14-2011 11:47 PM
Quotes Around Attribute Values - Optional? Jeremy S ASP .Net 6 06-15-2009 05:16 PM
Postbacks and CommandEventArgs John Bankhead ASP .Net Building Controls 2 03-31-2005 04:23 PM
Schema question regarding some mandatory/some optional values Piers Chivers XML 2 03-02-2004 09:49 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57