SFLNXTCHG keyword in subfile

5 pts.
Tags:
SFLNXTCHG
Subfile
Subfile Next Changed
Why SFLNXTCHG keyword is used in subfile?

Answer Wiki

Thanks. We'll let you know when a new response is added.

There is an internal flag on each subfile record.
When the user changes the record the flag is set.
When the program reads the record, usually with the READC, the flag is turned off.
If you want the flag on after that read – set the SFLNXTCHG on and update the subfile record.

This is often used when the program needs to make two passes through the changes
1. edit the requests – are they all valid
2. process the requests

In pass #1 there would be a READC loop which checked each request , processed errors, set the SFLNXTCHG on and updated each changed record

if all records passed pass #1
pass #2 would use the READC to acquire and process each changed record.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following