Page 1 of 1

Restricting numbering of Persons in a Roster

Posted: October 23rd, 2015, 2:43 am
by MrTaco
Hi guys

I want to restrict numbering of Persons according to it's number... as in Person 1 should be allow 1 not any other number
and Person 2 should allow 2 etc.

Regards
Thabiso

Re: Restricting numbering of Persons in a Roster

Posted: October 25th, 2015, 7:38 am
by josh
Normally this is done using the function curocc() which gives you the current occurrence i.e. the current row number of the roster. You can do this via an edit check e.g.:
PROC LINE_NUMBER
postproc

if LINE_NUMBER <> curocc() then
   
errmsg("Invalid line number");
endif;
Or you can automatically fill in the line number in the preproc:
PROC LINE_NUMBER
preproc
LINE_NUMBER =
curocc();

Re: Restricting numbering of Persons in a Roster

Posted: October 26th, 2015, 2:33 am
by MrTaco
THnaks Josh