-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Kishor
Message 3 in Discussion


Hi 
Rakesh,
here 
you are declaring one procudure having optional parameter date1.... so here you 
have to specify the value which is constant. write statement this 
way......
 
Private Sub xys(Optional ByVal dt As DateTime = #1/1/2003 12:00:00 
PM#)


end Sub


As 
Date values must be enclosed within number signs (#) and be in the format 
m/d/yyyy, for example #5/31/1993#. If you convert a Date 
value to the String type, the date is rendered according to the short date 
format recognized by your computer, and the time is rendered according to the 
time format (either 12-hour or 24-hour) in effect on your 
computer.
 
 
Regards,
Kishor
 
 

  -----Original Message-----
From: Rakeshkn 
  [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 1:46 
  PM
To: MumbaiUserGroup
Subject: Passing Optional Parameter 
  as datetime


  
    
      
      New Message on MumbaiUserGroup
    
      

  Passing 
    Optional Parameter as datetime


    
      
      
        Reply

        
          
            
            
               
              Reply to Sender   Recommend 
              Message 1 in 
                Discussion 
      
        
          
            
            
              From: Rakeshkn 
            
              

                Hi Everyone 
                How to pass an optional parameter of datetime type in 
                vb.net
                i have tried
                 private sub pro1(int1 as int32, optional date1 as 
                datetime=datetime.minvalue) 
                 
                But its giving error 
                 
                 
                 
                 
View other groups in this 
    category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to