Restricting numbering of Persons in a Roster

Other discussions about CSPro
Post Reply
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

Restricting numbering of Persons in a Roster

Post 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
Attachments
Restricting numbering of Persons in a Roster.zip
(3.69 KiB) Downloaded 312 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Restricting numbering of Persons in a Roster

Post 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();
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

Re: Restricting numbering of Persons in a Roster

Post by MrTaco »

THnaks Josh
Post Reply