EGL Reference Guide for iSeries

Examples

Assume the following settings in the form form01:

The following logic shows the result of various tests:

  // tests false because a converse statement 
  // was not run for the form
  if (form01 is modified)
    ;
  end
 
  // causes a run-time error because a converse 
  // statement was not run for the form
  if (item01 is modified)
    ;
  end
 
  // assume that the user modifies both items
  converse form01;
 
  // tests true
  if (item01 is modified)
    ;
  end
 
  // tests true
  if (item02 is modified)
    ;
  end
 
  // sets the modified property to no 
  // at the next converse statement for the form 
  set item01 initialAttributes;
 
  // sets the modified property to yes 
  // at the next converse statement for the form 
  set item02 initialAttributes;
 
  // tests true 
  // (the previous set statement takes effect only
  // at the next converse statement for the form
  if (item01 is modified)
    ;
  end
 
  // assume that the user does not modify either item
  converse form01;
 
  // tests false because the program set the modified 
  // data tag to no, and the user entered no data 
  if (item01 is modified)
    ;
  end
 
  // tests true because the program set the modified 
  // data tag to yes
  if (item02 is modified)
    ;
  end
 
  // assume that the user does not modify either item
  converse form01;
 
  // tests false
  if (item01 is modified)
    ;
  end
 
  // tests false because the presentation was not
  // the first, and the program did not reset the
  // item properties to their initial values
  if (item02 is modified)
    ;
  end


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]