Leap YearS

Share sample pubs, scripts, etc. with other NeoBook users

Moderator: Neosoft Support

Locked
User avatar
virger
Posts: 540
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Leap YearS

Post by virger »

Desde COSTA RICA
With only 8 lines of code list from 1900 to 2020 years Leap

Code: Select all

loop "1900" "2020" "[Yr]"
    DateToNum "29/02/[Yr]" "d/m/y" "[Year_[Yr]]"
    if "[Year_[Yr]]" "<>" "Error"
        setvar "[Year_[Yr]]" "Leap"
    else
        setvar "[Year_[Yr]]" ""
    endif
endloop
May help you with dates.
NEXT GRECIA
COSTA RICA
PURA VIDA
Neosoft Support
NeoSoft Team
Posts: 5628
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA
Contact:

Re: Leap YearS

Post by Neosoft Support »

Terrific! Thank you.
NeoSoft Support
Locked