home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a079 / 1.img / FPDG.LZH / VOL2NUM0 / MULTWIND / MULTWIND.APP (.txt) < prev    next >
Encoding:
MS Visual FoxPro App  |  1993-02-01  |  3.0 KB  |  38 lines

  1. COMPANY
  2. ADDRESS
  3. STATE
  4.  Herald R. Smith        24ACME Supply Company 2532 East Avenue    Glendale       CA91211         Jane Doe               36Earth Watch Inc     55 First Street     Laguna         CA90011        
  5. The MULTWIN.PRG program is a simple example of a multiple window READ operation. Some GET objects that participate in the READ are associated with WINDOW A and others are attached to WINDOW B. The READ command contains ACTIVATE and DEACTIVATE clauses.
  6. Whenever a window is about to be activated, the ACTIVATE clause is called. Its expression contains a call to the ShowPrompt() functions that instruct the user to make corrections. The READ command calls the DEACTIVATE clause before you leave a window.
  7. The DEACTIVATE clause consists of a call to function CheckExit(). If the user initiates some action that results in the cursor moving from a field in WINDOW A to a field in WINDOW B, the CheckExit() function displays WINDOW C with a prompt message asking the user to confirm that editing is complete. WINDOW C also contains Yes and No push buttons. The READ statement in the CheckExit() function statement activates the GET objects in WINDOW C. This READ command is an example of a READ within a READ, also called a nested READ. If the user responds in an affirmative manner by pressing the Yes push button, the nested READ exits and the CheckExit() function returns a true value (.T.) and the top level READ command exits. Otherwise, the function returns a logical false value and editing continues.
  8. INFOFILE
  9. Personal Data
  10. Company Info
  11. Confirmation
  12.     Name:
  13.      Age:
  14.  Company:
  15.  Address:
  16.     City:
  17.    State:
  18.      Zip:
  19. INFOFILE
  20. CHOICE
  21. COMPANY
  22. ADDRESS
  23. STATE
  24. CHECKEXIT
  25. SHOWPROMPT
  26. Have you finished making changes?
  27. @*H Yes;No
  28. CHOICE
  29. Please correct the information
  30. CHECKEXIT
  31. SHOWPROMPT
  32. f:\jebwin\vol2num0\multwind\
  33. INFOFILE.DBF
  34. MULTWIND.ART
  35. f:\jebwin\vol2num0\multwind\multwind.prg
  36. h:\foxprow\
  37. MULTWIND.FXP
  38.