Page 1 of 1

Change ID fields

Posted: March 14th, 2019, 1:31 pm
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

Re: Change ID fields

Posted: March 14th, 2019, 3:57 pm
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.