Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optional DateTime parameter in VB.NET????
Message
De
13/08/2004 11:56:57
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Optional DateTime parameter in VB.NET????
Divers
Thread ID:
00933162
Message ID:
00933162
Vues:
72
I'm trying to write a subroutine with an optional DateTime parameter. Problem is I can't seem to code a default for it. I've tried "= Nothing", "= New DateTime(DateTime.MinValue)", and "= New DateTime(CType(0, Long))". The compiler rejects them all. I would like to default the parameter to Nothing then be able to check it inside the sub with "If MyDateTime is Nothing Then".

Has anybody else run into this?

Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform