[Migrated content. Thread originally posted on 23 February 2004]
Is it possible to set the min-val and max-val of an auto-spin control at runtime?It doesn't seem to be working for me.
I have a screen section entry with a control like this:
03 EF-PER-QTR, Entry-Field,
COL 14, LINE 4, LINES 1.33 CELLS, SIZE 5.00 CELLS,
3-D, FONT IS Small-Font, ID IS 16, MAX-TEXT 2, AUTO-SPIN,
VALUE MY-VAR, VISIBLE PER-QTR-VISIBLE.
Sometimes I want this field to be able to allow values between 0 and 12 and other times a value between 1 and 4.
After the screen (at the 01 level) has been displayed, I tried:
MODIFY EF-PER-QTR, MIN-VAL = 1, MAX-VAL = 4
and
MODIFY EF-PER-QTR, MIN-VAL 1, MAX-VAL 4
Both compile, but neither have any effect - the field still allows any value.