devxlogo

Where to put code you want to run every time a new record is read into buffer

Where to put code you want to run every time a new record is read into buffer

Question:
Where is the best place to put code that you want to run every time a new record is read into buffer? For example, in a HR system, you may wish to set the caption of the form to the employee’s name when you change records.

Answer:
This is kind of a rhetorical question, but I’ll answer it the best I can. I’dprobably run the code immediately after the record is completely read intothe buffer. The reason for this is that it’s in response to sort of a statechange in the buffer, so it seems to me to be the most logical place toexecute the code.

See also  Redefining Energy Management: Advanced Solutions for Modern Buildings
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist