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
-
MrTaco
- Posts: 128
- Joined: November 18th, 2014, 1:55 am
Restricting numbering of Persons in a Roster
You do not have the required permissions to view the files attached to this post.
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
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();
-
MrTaco
- Posts: 128
- Joined: November 18th, 2014, 1:55 am
Re: Restricting numbering of Persons in a Roster
THnaks Josh