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
Restricting numbering of Persons in a Roster
Restricting numbering of Persons in a Roster
- Attachments
-
- Restricting numbering of Persons in a Roster.zip
- (3.69 KiB) Downloaded 312 times
Re: Restricting numbering of Persons in a Roster
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:
postproc
if LINE_NUMBER <> curocc() then
errmsg("Invalid line number");
endif;
PROC LINE_NUMBER
preproc
LINE_NUMBER = curocc();
preproc
LINE_NUMBER = curocc();
Re: Restricting numbering of Persons in a Roster
THnaks Josh