Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Leap-year/OpenEdge-Progress/leap-year.openedge
Normal file
16
Task/Leap-year/OpenEdge-Progress/leap-year.openedge
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
FUNCTION isLeapYear RETURNS LOGICAL (
|
||||
i_iyear AS INTEGER
|
||||
):
|
||||
|
||||
DATE( 2, 29, i_iyear ) NO-ERROR.
|
||||
RETURN NOT ERROR-STATUS:ERROR.
|
||||
|
||||
END FUNCTION. /* isLeapYear */
|
||||
|
||||
MESSAGE
|
||||
1900 isLeapYear( 1900 ) SKIP
|
||||
1994 isLeapYear( 1994 ) SKIP
|
||||
1996 isLeapYear( 1996 ) SKIP
|
||||
1997 isLeapYear( 1997 ) SKIP
|
||||
2000 isLeapYear( 2000 )
|
||||
VIEW-AS ALERT-BOX.
|
||||
Loading…
Add table
Add a link
Reference in a new issue