! Number of rows (1-10) %===>_Z +
! Atomic (Y/N) %===>_Z+
)INIT
.ZVARS = '(IROWS,ATOMIC)'
&ZSAVTTL = &ZWINTTL
&ZWINTTL = 'Insert (multi-row)'
VGET (IROWS,ATOMIC) PROFILE
IF (&IROWS = '')
&IROWS = 10 /* Never been here, default is 10 */
)REINIT
)PROC
&ZWINTTL = &ZSAVTTL
&ZSEL = ''
VER(&IROWS,RANGE,1,10) /* Between 1 & 10 only */
VER(&ATOMIC,NONBLANK) /* Verify not blank */
VER(&ATOMIC,LIST,Y,N) /* Y or N only */
)END
Note the VER(&ATOMIC,NONBLANK) line. Without it, if I test the panel using 7.2 and enter a blank in the field and press enter, no error message. By including the NONBLANK line, I get the expected error message.
Surely (to my way of thinking), the VER(&ATOMIC,LIST,Y,N) says that only Y or N are allowed. Why does blank slip through ? _________________ Michael
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum