Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Limited Time Programs
#7
I would write it in the program like this is even smaller.


Code: (Select All)
'Print Date$
month$ = Left$(Date$, 2): M = Val(month$)
day$ = Mid$(Date$, 4, 2): D = Val(day$)
day$ = Str$(D) ' eliminate any leading zeros
year$ = Right$(Date$, 4): Y = Val(year$)

Print "Test Zeitraum betr„gt 30 Tage" 'Vom 6,2,2023 bis 19,3,2023
'Print D
'Print M
'Print Y
Tage = 30
If Y > 2023 Then System
If M > 3 Then System
If D > 6 And M = 2 Then Tage = Tage - D + 6
If D < 6 And M > 2 Then Tage = Tage - 17 - D
If D >= 6 And M > 2 Then Tage = Tage - 23 - D

Print "Sie haben noch "; Tage; " Tage Demozeit"
If Tage <= 0 Then
    Print " Ihr Testzeitraum ist abgelaufen"
    Sleep
    System
End If
Print " Viel Spass"
Reply


Messages In This Thread
Limited Time Programs - by SMcNeill - 02-05-2023, 09:44 PM
RE: Limited Time Programs - by SMcNeill - 02-05-2023, 09:55 PM
RE: Limited Time Programs - by mnrvovrfc - 02-06-2023, 01:21 AM
RE: Limited Time Programs - by SMcNeill - 02-06-2023, 08:37 AM
RE: Limited Time Programs - by TerryRitchie - 02-06-2023, 03:08 AM
RE: Limited Time Programs - by SpriggsySpriggs - 02-07-2023, 02:30 PM
RE: Limited Time Programs - by TerryRitchie - 02-07-2023, 04:05 PM
RE: Limited Time Programs - by SpriggsySpriggs - 02-07-2023, 04:29 PM
RE: Limited Time Programs - by TerryRitchie - 02-09-2023, 02:25 AM
RE: Limited Time Programs - by bplus - 02-06-2023, 04:48 PM
RE: Limited Time Programs - by Steffan-68 - 02-06-2023, 06:22 PM



Users browsing this thread: 1 Guest(s)