1 &ANALYZE-SUSPEND _VERSION-NUMBER UIB_v8r12
3 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS Include
4 /*--------------------------------------------------------------------------
15 ------------------------------------------------------------------------*/
16 /* This .W file was created with the Progress UIB.
*/
17 /*----------------------------------------------------------------------*/
19 /* *************************** Definitions
************************** */
21 /* _UIB-CODE-BLOCK-END
*/
25 &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
27 /* ******************** Preprocessor Definitions
******************** */
31 /* _UIB-PREPROCESSOR-BLOCK-END
*/
35 /* ************************ Function Prototypes
********************** */
37 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD ceiling Include
38 FUNCTION ceiling
RETURNS INTEGER
39 ( INPUT d
AS DEC ) FORWARD.
41 /* _UIB-CODE-BLOCK-END
*/
44 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD floor Include
45 FUNCTION floor
RETURNS INTEGER
46 ( INPUT d
AS DEC ) FORWARD.
48 /* _UIB-CODE-BLOCK-END
*/
52 /* *********************** Procedure Settings
************************ */
54 &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
55 /* Settings for
THIS-PROCEDURE
59 Add Fields to
: Neither
60 Other Settings
: INCLUDE-ONLY
62 &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
64 /* ************************* Create Window
************************** */
66 &ANALYZE-SUSPEND _CREATE-WINDOW
67 /* DESIGN Window definition
(used by the UIB
)
68 CREATE WINDOW Include
ASSIGN
71 /* END WINDOW DEFINITION
*/
78 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK Include
81 /* *************************** Main Block
*************************** */
83 /* _UIB-CODE-BLOCK-END
*/
87 /* ************************ Function Implementations
***************** */
89 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION ceiling Include
90 FUNCTION ceiling
RETURNS INTEGER
92 /*------------------------------------------------------------------------------
95 ------------------------------------------------------------------------------*/
97 DEF VAR ceiling
AS INT NO-UNDO.
99 ceiling
= IF TRUNCATE( d
, 0 ) = d
101 ELSE TRUNCATE( d
, 0 ) + ( IF d
< 0 THEN 0 ELSE 1 ).
106 /* _UIB-CODE-BLOCK-END
*/
110 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION floor Include
111 FUNCTION floor
RETURNS INTEGER
113 /*------------------------------------------------------------------------------
116 ------------------------------------------------------------------------------*/
118 DEF VAR floor
AS INT NO-UNDO.
119 floor
= TRUNCATE( d
, 0 ).
120 floor
= IF floor
= d
THEN d
ELSE floor
- ( IF d
< 0 THEN 1 ELSE 0 ).
125 /* _UIB-CODE-BLOCK-END
*/