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.