ModuleEHashModified

Type: Module Parent Module: N/A

Module Module_HashModified
Version / Date 2.00 / 17th February 2001
Author (Organisation) Kevin Gale (Newcastle Computer Services Plc)
e-mail keving@ncs-plc.co.uk

This module converts #MODIFIED into a notational form. Note that this change is not strictly necessary since the Omnis 7 #MODIFIED system variable continues to work with Omnis Studio.

Functionality

Search all methods for the string "#MODIFIED". Wherever this is found in a method:

  1. Create an instance var "iOldFieldData" of data type character, to hold the contents of the field on entry.
  2. If there is not an existing test for "If #BEFORE" in the method then create one.
  3. In the "If #BEFORE" block save the current value "$cfield.$contents" in the variable "iOldFieldData".
  4. Change the "If #MODIFIED" command to "If $cfield.$contents<>iOldFieldData".

Note that this module must run before the module "Module_EventHandling" if it is required to convert the "If #BEFORE" to "On evBefore".

Assumptions

  1. This module assumes that testing for "#MODIFIED" is only required for fields that contain data that can be stored in the character variable "iOldFieldData" (i.e. character, number, date, time, etc.).

User Setup Required for this Module

  1. None.