Change ID fields

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Don
Posts: 55
Joined: February 15th, 2013, 1:28 pm
Location: Barbados

Change ID fields

Post by Don »

Is there a way to load a case and change any of the identification fields? I tried the following code

Code: Select all

loadcase(LABOURFORCE_DICT,prevround) then		//load previous round
RNDNO = tonumber(curid[1:2]);		//change round number (an id field) to current round
writecase(LABOURFORCE_DICT);
But that results in the case being duplicated. Doing this with any other field seems to work
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Change ID fields

Post by aaronw »

You have two options, using data entry as you already are or using a batch application.

Using data entry you'll:
  • loadcase
  • delcase
  • writecase
The easier option is to write a batch application which allow you have a input and output file. You'll simply identify the cases and modify them and they'll be written to your outputfile.
Post Reply