In my subfile, when I delete some records, I don't want to remove that records from the subfile. Instead, I want to show them in red color. What is the best way to achieve this?
Software/Hardware used:
AS400
ASKED:
September 18, 2012 5:30 AM
UPDATED:
September 18, 2012 12:34 PM
What is the best way to achieve this?
There is no “best” way for most programming problems. There are usually many ways, and different ways may be better for different circumstances.
I’d probably assign a DSPATR() with a program-to-system field to the columns in my subfile rows. After reading a row and performing the DELETE against whatever you’re deleting, I would UPDATE the subfile row with a new color attribute value in the associated program-to-system field.
But that’s just what I would do. I don’t know what’s best for you to do.
Tom