home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Bus / C / Commander 2.1 Demo .sit / Commander 2.1 Demo / 4D Reference Info Demo.rsrc / TEXT_5530_Data Entry Cycle.txt < prev    next >
Encoding:
Text File  |  1994-11-09  |  1.9 KB  |  36 lines

  1. For Data Entry
  2.  
  3.  
  4. When a user is entering data into a layout, the following phases of the execution cycle are executed: ¬†Before, ¬†During, ¬†After, Outside¬†Call, ¬†Activated, and ¬†Deactivated.
  5.  
  6. ‚Ä¢ ¬†Before: Occurs before the layout is displayed. It is used, for example, to test whether the record is a new record or an existing record. (Recall that a layout may be used both for adding new records or modifying existing records.) The Before phase is also used to initialize variables and display default values in fields.
  7.  
  8. ‚Ä¢ ¬†During: Occurs during data entry each time data is changed or an active object is used. 
  9.  
  10. ‚Ä¢ ¬†After: Occurs after the record has been accepted.
  11.  
  12. ‚Ä¢   Outside¬†Call: Occurs during data entry if a call is made from another process. 
  13.  
  14. ‚Ä¢ ¬†Deactivated: Occurs during data entry each time the window containing the layout or script is sent to the back or is not the frontmost window anymore. A deactivated phase will occur if an alert message or the debugger is displayed.
  15.  
  16. ‚Ä¢ ¬†Activated: Occurs during data entry each time the window containing the layout or script becomes the frontmost window.
  17.  
  18.  
  19. The ¬†During phase occurs when the user does something to the layout. Some of the user actions that can cause a During phase are the following:
  20.  
  21. ‚Ä¢ Changing data in a field or variable and leaving the field or variable
  22. ‚Ä¢ Clicking a button
  23. ‚Ä¢ Manipulating a thermometer, ruler, or dial
  24. ‚Ä¢ Choosing an item from a menu
  25. ‚Ä¢ Selecting an item from a scrollable area
  26. ‚Ä¢ Choosing an item from a pop-up menu
  27. ‚Ä¢ Pressing an assigned key combination
  28. ‚Ä¢ Clicking an external area
  29. ‚Ä¢ Working in an included area
  30.  
  31.  
  32. The ¬†During phase is typically used for tasks such as validating data, formatting entered data, managing data in related files, and monitoring and responding to the selection of controls.
  33.  
  34. The ¬†After phase takes place after the user has modified and accepted a record. It will not occur if the user cancels the record.
  35.  
  36.