Posted on 2013-01-14
Using a subfile where users can add and delete data on the subfile screen. When they delete a record everything works fine. When I try to add a record, after the subfile is initialized with SFLCLR the subfile load blows up with "an attempt to write a duplicate record" error. In some other posts I saw the SFLCLR clears the subfile but not the display, but cannot stop the error from happeneing. I can put my code out there if necessary. I am a fairly experienced programmer in RPG but have never encountered this problem before, I have wrote subfiles before. Hope you an help.