Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optional DateTime parameter in VB.NET????
Message
De
16/08/2004 17:16:14
 
 
À
15/08/2004 11:19:59
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00933162
Message ID:
00933693
Vues:
16
Sorry, Max ... since I'm a C# programmer I don't know all the VB syntax. It looks like Rob gave you a good answer and one that I thought about giving myself, except for the fact that I was under the impression that VB.NET did not support overloaded methods ... but I guess I was wrong.

~~Bonnie



>Thanks Bonnie,
>
>What I was trying to convey was that I was trying to code the default clause on an option VB.NET paramater of DateTime type such as:
> Private Sub MySub(Optional ByVal MyParm as DateTime = DateTime.MinValue) as Integer
>or
> Private Sub MySub(Optional ByVal MyParm as DateTime = New DateTime DateTime.MinValue)) as Integer
>
>Neither of these will work of course because DateTime is a struct rather than an object and so cannot be an optional parm.
>
>Max Fillmore
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform