·  Start ·  Programme ·  Codes ·  Tipps ·  ActiveX ·  Tutorials · 



Sie benötigen eine Form, einen Commandbutton, einen Label und eine Textbox.

Option Explicit

Private Sub Command1_Click()
' welches Datum ist ein Samstag in der jeweiligen Kalenderwoche ???
Dim d As Date

    If (Val(Text1.Text) < 0) Or (Val(Text1.Text) > 52) Then Exit Sub

    d = CDate("01.01.2004") + (Val(Text1.Text) - 1) * 7
    d = d + 5 - Weekday(d, vbMonday) + 1
    Label1.Caption = d
     
End Sub

Private Sub Form_Load()
    Text1.Text = "21"
End Sub

Aktualisiert: 12.02.2008, 14:10 Uhr Copyright © 2001 - 2010 by ST-software Navigation zurück  |  Navigation vorwärts  |  Zum Seitenanfang     
Ihre IP: 38.107.191.80 ·  Seite erstellt in: 0.031 Sekunden ·  Dateigröße:  2380 Bytes