Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The GetInfo method could have been modified to pass a value. In this case there would have been no need to define an Employee property for FRMDETAIL. However, it is customary to define data as properties and actions as methods although in some cases the distinction is not clear-cut. Also, once a property has been defined, its value can also be queried by another form.
  • It wasn't absolutely necessary to create the OKPressed event because you could have refreshed the list of employees in WRKEMP when FRMDETAIL was closed (Closing event). The drawback in this implementation is that the list would have been refreshed also when FRMDETAIL was closed using the Cancel button.

&<img src="../resources/images/opentoc-dark.png" title="Open Contents List" border="0"&>