Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code to determine any Friday's date
Message
De
24/10/2002 17:47:36
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
 
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00715169
Message ID:
00715182
Vues:
12
Private Sub Text1_LostFocus()

    If Format(CDate(Text1.Text), "dddd") = "Friday" Then
        Text2.Text = CDate(Text1.Text) + 2
    Else
        Text2.Text = Text1.Text
    End If
    
End Sub
Make sure you test for valid date values in the text boxes before moving focus.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform