Runtime Value

stlouish

New Member
Hi,
I'd like to use the runtime value of a Constant to define the extent of a variable.

Example:

&GLOBAL-DEFINE GLBM 125
&GLOBAL-DEFINE GLBMAX INTEGER(({&GLBM} + 1) / 2) <--
define var pdv as decimal extent {&GLBMAX} NO-UNDO.

or

&GLOBAL-DEFINE GLBM 125
&GLOBAL-DEFINE GLBMAX ({&GLBM} + 1) / 2
define var pdv as decimal extent INTEGER({&GLBMAX}) NO-UNDO. <--

Cordially,
Hugo
 
Back
Top