In certain programs of ours, we have function keys that read the entire subfile (for example, to put a default value in a certain field if the field on that record is empty). When these function keys are pressed, we read the entire subfile doing a chain on each one. However, doing so turns off the modified tag of all records. If the user had input some data onto some records (for example, inputting an option), these records are no longer marked as changed and aren't read with the next READC loop.
When doing a CHAIN on a subfile record, how can I determine if that record should be marked changed again with SFLNXTCHG? Is there a way to return the value of the modified tag when chaining a subfile record?
For now, I'm using work-arounds. If an option has been input on a record, I activate SFLNXTCHG since options always set the modified tag on. However, when it's another field of the subfile that turned the modified tag on, I don't always have a method of determining if I need to activate SFLNXTCHG or not when chaining this record.
Thanks.
When doing a CHAIN on a subfile record, how can I determine if that record should be marked changed again with SFLNXTCHG? Is there a way to return the value of the modified tag when chaining a subfile record?
For now, I'm using work-arounds. If an option has been input on a record, I activate SFLNXTCHG since options always set the modified tag on. However, when it's another field of the subfile that turned the modified tag on, I don't always have a method of determining if I need to activate SFLNXTCHG or not when chaining this record.
Thanks.
Comment