home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / SCREDIT2.ZIP / TUTOR.DOC < prev   
Encoding:
Text File  |  1989-02-12  |  100.0 KB  |  2,875 lines

  1.  
  2.  
  3.                              Page  1
  4.  
  5.                    **  Turbo ScrEdit Tutor  **
  6.                 Copyright(C) 1989, by iHn Systems       
  7.  
  8.  
  9. This tutor is designed to step you through every aspect of  using 
  10. Turbo ScrEdit. As you read through this tutor it is assumed  that 
  11. you have successfully installed Turbo ScrEdit as described in the 
  12. file  "PRINTME.1ST",  and you are sitting at a PC  keyboard  with 
  13. Turbo ScrEdit running.
  14.  
  15. Turbo ScrEdit is an extensive program, with a lot of features and 
  16. capabilities. You should expect to spend from 3 to 4 hours  going 
  17. through this tutor.
  18.  
  19. Throughout  this  tutor, as I describe each  of  Turbo  ScrEdit's 
  20. features, I will ask you to press a key or a sequence of keys, or 
  21. type  in  a  response,   I will type  your  instructions  in  all 
  22. UPPERCASE  characters on a line by themselves.  Be sure  to  read 
  23. the complete text that proceeds each of these examples before you 
  24. try to do the example.
  25.  
  26. Example:
  27.  
  28.     Pressing the enter key at this point will cause your computer 
  29.     to stand up abruptly and tap dance across your desk:
  30.  
  31.     PRESS ENTER
  32.  
  33. In the above example you would press the enter key when you see
  34. "PRESS ENTER".
  35.  
  36. Another Example:
  37.  
  38.     TYPE "some word or name" AND PRESS ENTER.
  39.  
  40. In the above example I want you to type the phrase surrounded  by 
  41. quotes and press the enter key. You are only expected to type the 
  42. phrase between the quotes, not the quotes.
  43.     
  44. This tutorial will be divided into two parts:
  45.  
  46. PART ONE  will step you through using Turbo ScrEdit. You will  be 
  47.      guided  through every aspect of using ScrEdit to create  and 
  48.      edit screens and screen files.
  49.  
  50. PART TWO   will  use the demonstration  files  "SCRDEMO.SCR"  and 
  51.      "SCRDEMO.P" that have been supplied with ScrEdit to show you 
  52.      one  way to implement a screen file into a  pascal  program. 
  53.      (Turbo  C  users  will  be  using  "SCRDEMO.C"  instead   of 
  54.      ScrDemo.P);
  55.  
  56. PART ONE:
  57.  
  58. To  start  with you should be looking at the Turbo  ScrEdit  Logo 
  59. screen  (or the registration information screen if you are  using 
  60. an evaluation copy of Turbo ScrEdit. Press any key to get to  the 
  61. logo  screen.)  If  you do not know how to  proceed  beyond  this 
  62. screen  you  will want to read the file "PRINTME.1ST"  that  came 
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.                              Page  2
  70.  
  71. with  Turbo  ScrEdit. There you will find  the  instructions  for 
  72. starting  Turbo  ScrEdit  immediately  following  the  disclaimer 
  73. section.  I  would  encourage you to take the time  to  read  the 
  74. entire contents of the "PRINTME.1ST" file before you proceed with 
  75. this tutor.
  76.  
  77. When  you  enter  the Turbo ScrEdit, environment  the  main  menu 
  78. screen  will  fill  the display. Menu  options  are  selected  by 
  79. pressing  the  keys  that  correspond  to  the  highlighted   key 
  80. descriptions.  Turbo  ScrEdit's main menu  screen  contains  five 
  81. sections:
  82.     1 - The top of the screen displays the Turbo ScrEdit  version 
  83.         number  and copyright notice.
  84.     2 - Next  is the "Work Screen" section. This section  of  the    
  85.         screen is where we define the screen file that we will be 
  86.         creating and storing screens in.
  87.     3 - A little lower and to the right of the screen is the 
  88.         "Key Assignments" section.     
  89.     4 - Still  lower  and back to the left of the screen  is  the 
  90.         "Copy Screen" section. 
  91.     5 - And finally the bottom line of the screen is the  message 
  92.         and  prompt  line.  If Turbo ScrEdit needs  to  tell  you 
  93.         something  or if it wants you to make a decision it  will 
  94.         display messages on this line.
  95.  
  96. Now  turn your attention to the "Key Assignments" section of  the 
  97. screen. We are going to discuss each of the keys listed here  and 
  98. their  functions.   We can see here that Turbo ScrEdit  uses  the 
  99. function  keys F1 through F10 and the "G" key to  invoke  various 
  100. functions.  Notice also on the bottom of the screen that the  ESC 
  101. key  ends  Turbo  ScrEdit, and holding down  the  shift  key  and 
  102. pressing any of the above mentioned keys will invoke the  on-line 
  103. help system and display the manual text describing the particular  
  104. key that you have pressed.
  105.  
  106. First  lets  discuss  the control keys that  do  not  pertain  to 
  107. editing screen files.
  108.  
  109. F7 - Use this key to print or view the manual. 
  110.  
  111.      PRESS F7
  112.  
  113.      When  you press F7 the main menu screen will  disappear  and 
  114.      the system help screen will be displayed.
  115.  
  116.      What  you are looking at is the help system index.  You  can 
  117.      scroll  the  index up and down through the text  window  one 
  118.      line  at  a  time by using the up and  down  arrows  on  the 
  119.      keypad, or you can scroll a page at a time by using the PgUp 
  120.      and PgDn keys. Try scrolling the index text:
  121.  
  122.      PRESS DOWN ARROW (a few times)
  123.      
  124.      PRESS PgDn
  125.  
  126.      PRESS UP ARROW (a few times)
  127.  
  128.      PRESS PgUp
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.                              Page  3
  136.  
  137.  
  138.      Lets look at Topic# 1 of the manual. This topic will discuss 
  139.      using the on-help system:
  140.  
  141.      PRESS "G"         
  142.  
  143.      A  line  at the top of the screen has changed from  a  empty 
  144.      inverse line to a data entry field with a blinking cursor in 
  145.      it.  The  label to the left of the field reads  "Index  line 
  146.      Number =". Turbo ScrEdit is waiting for you to enter one  of 
  147.      the highlighted index numbers (1-21).
  148.  
  149.      TYPE "1" and PRESS ENTER
  150.  
  151.      The  index has disappeared and the text for Topic# 1 now  is 
  152.      displayed in the text window. 
  153.  
  154.      Take  time now to read the manual comments about  using  the 
  155.      on-line  help system. Use the same keys (Up &  Down  arrows, 
  156.      PgUP,  PgDn) to  scroll text through the text window as  you 
  157.      did  to scroll the index. Go ahead and read the manual  text 
  158.      until you reach the section heading "THE MAIN MENU SCREEN".
  159.  
  160.  
  161.    - Using the string search feature -
  162.  
  163.      Okay, now that you have read the instructions for using  the 
  164.      on-line  help  system lets explore some of the  options  you 
  165.      just  read about. First lets try the string  search  feature 
  166.      (C,S,A, and B keys). 
  167.           
  168.      PRESS "C"
  169.     
  170.      In the field above the text you are being prompted to  enter 
  171.      a  string  of characters to search by.  You  can  capitalize 
  172.      words if you like, but when Turbo ScrEdit search's for  text 
  173.      it  pays  no attention to character case. Thus  "INDEX"  and 
  174.      "index" will be considered the same.
  175.  
  176.      TYPE "index" and PRESS ENTER
  177.  
  178.      Now that you have established the target of the search,  you 
  179.      must  tell Turbo ScrEdit to begin searching. You have  three 
  180.      option  for searching (S,A,B). The "S" option  means  search 
  181.      the  entire  manual for the first occurrence of  the  target 
  182.      string.
  183.  
  184.      PRESS "S".
  185.  
  186.      There will be a brief pause while the search is in progress. 
  187.      When  a  match is found the line that  contains  the  search 
  188.      target  will  be  displayed on the first line  of  the  text 
  189.      window.
  190.  
  191.      The  "A" search option means search ahead in the  text  from 
  192.      the current position in the manual.
  193.  
  194.      PRESS "A"
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.                              Page  4
  202.  
  203.  
  204.      To  search  backward  throught the  text  for  the  previous 
  205.      occurrence.
  206.  
  207.      PRESS "B"
  208.  
  209.      In the case that the target string is not found in the  text 
  210.      Turbo ScrEdit will display a message and end the search.
  211.  
  212.  
  213.    - Printing All or Part of the Manual -  
  214.  
  215.      If  you do not have a printer attached to your system,  skip 
  216.      to the next section.  If you have a printer attached to your
  217.      system lets look at how to print all or part of the manual.  
  218.      PRESS F1
  219.  
  220.      In  the field above the text you are being prompted for  one 
  221.      of four  possible responses.
  222.      1. If you press the ESC key the print process is aborted.
  223.      2. If you type "E" and press enter the entire manual will be 
  224.         printed.
  225.      3. If you type "I" and press enter the manual index will  be 
  226.         printed.  
  227.      4. If  you type a topic number (listed on the  manual  index 
  228.         listing  described  above), and press enter,  that  topic 
  229.         will be printed.    
  230.  
  231.      Lets  try  the "I" option described above for  printing  the 
  232.      index:
  233.      
  234.      TYPE "I" and PRESS ENTER
  235.  
  236.      Now  that you have a listing of the manual index,  lets  try 
  237.      looking  up  a topic. The topic look up function  will  work 
  238.      differently  depending on where you are in the on-line  help 
  239.      system. There are two possibilities:
  240.      1st - When you are browsing through the manual text and want 
  241.            to  skip  to  another  part  of  the  manual   without 
  242.            scrolling to it. 
  243.  
  244.            PRESS "G"
  245.  
  246.            Select  a  topic from the manual index  that  we  just 
  247.            printed.  If you couldn't print an index listing  just 
  248.            use Topic# 10.
  249.         
  250.            TYPE  "10"  (or any topic# of your choice)  and  PRESS 
  251.            ENTER
  252.  
  253.            The  text for the selected topic# should now fill  the 
  254.            screen.  Try  looking up any of the topics  (1-91)  on 
  255.            your own before you continue. 
  256.  
  257.            When  you are ready to continue we will use  the  home 
  258.            key to return to the main index. Remember whenever you 
  259.            are reading the manual you can return to the index  by 
  260.            pressing the home key.
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.                              Page  5
  268.  
  269.  
  270.            PRESS HOME
  271.  
  272.      2nd - When  you are browsing through the help  system  index 
  273.            and want to go to the text of one of the index topics:
  274.  
  275.            PRESS "G"        
  276.  
  277.            Select one of the 21 highlighted topic numbers to  the 
  278.            left  of  the index text. For this example  let's  use 
  279.            number 10 again:
  280.         
  281.            TYPE "10" and PRESS ENTER
  282.  
  283.            The text for Topic# 10 should now fill the screen.
  284.  
  285.      Well  that  ends the discussion on using  the  on-line  help 
  286.      system.  Remember you can enter into the on-line help system 
  287.      from  just about any place while using Turbo ScrEdit. As  we 
  288.      go  though the other features of Turbo ScrEdit I  will  show 
  289.      you how to get context sensitive help for whatever keystroke 
  290.      that  you  need  help with. Lets return  to  the  main  menu 
  291.      screen:
  292.      
  293.      PRESS ESC 
  294.  
  295.  
  296. - Exiting the Turbo ScrEdit environment -  
  297.  
  298. Using the ESCape key:
  299.  
  300.      The  ESC key is used throughout Turbo ScrEdit to  "quit"  or 
  301.      "exit".  If  you are performing a function you  can  usually 
  302.      abort  that function by pressing ESC. Other  times  pressing 
  303.      the ESC key will cause you to return to the main menu.
  304.  
  305.      When you are in the main menu of Turbo ScrEdit, pressing the 
  306.      ESC key will end your current session with Turbo ScrEdit and 
  307.      return you to the DOS prompt.
  308.  
  309.  
  310. - Viewing disk directories -
  311.  
  312. There  will  be  times when you will want to look  for  files  in 
  313. different  directories on your disks without having to  exit  the 
  314. Turbo ScrEdit environment. You will use the main menu F9 function 
  315. for this purpose.
  316.  
  317.      PRESS F9.
  318.  
  319.      The  screen  has  cleared and the words "Dir  Mask  ?"  have 
  320.      appeared in the top left corner of the screen.
  321.  
  322.      PRESS ENTER.
  323.  
  324.      The disk directory is displayed for the current, or default, 
  325.      drive.  Notice  that "*.*" is the  default  file  designator 
  326.      mask.   Notice  also  that  directories  are  displayed   in 
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.                              Page  6
  334.  
  335.      different color attributes.
  336.  
  337.      You may answer the "Dir Mask ?" prompt with any valid MS-DOS 
  338.      file identifier including wild card characters. You can read 
  339.      more on displaying directories by pressing SHIFT and F9 keys 
  340.      from the main menu screen.
  341.  
  342.      PRESS SPACE BAR - to return to the main menu screen.
  343.  
  344.      PRESS SHIFT and F9 at the same time.
  345.  
  346.      The  main menu screen has just been replaced by the  on-line 
  347.      help  system and the text describing the F9 menu  option  is 
  348.      displayed.
  349.  
  350.      PRESS ESC - to return to the main menu.
  351.  
  352.  
  353. Now  lets look at the control keys that pertain to  working  with 
  354. screen  files.  Just so we know that we are  standing  on  common 
  355. ground at this point let me define a screen file:
  356.  
  357.     A screen file will contain a collection of screen records.  A 
  358.     screen  file  will  appear in your  disk  directory  with  an 
  359.     extension of ".SCR". Each screen that you design for use in a 
  360.     program will become 1 of the possible 128 screens that can be 
  361.     stored in a screen file. 
  362.  
  363. So  it is logical that we must first create a screen file  before 
  364. we can begin storing screen records in it. The F1 key is used for 
  365. specifying the name of the screen file to be created or edited.
  366.  
  367.  
  368. - Selecting a work screen file -
  369.  
  370. F1 - specifying the screen file to create or edit.
  371.  
  372.     Locate  the section of the screen labeled "Work  Screen"  and 
  373.     the  word "Undefined" in the highlighted line that spans  the 
  374.     screen.  
  375.  
  376.     PRESS F1
  377.  
  378.     Notice  that the word "Undefined"  and the  highlighted  line 
  379.     have  been  replaced  by  a blank data  entry  field  with  a 
  380.     blinking  cursor in it.  Turbo ScrEdit is waiting for you  to 
  381.     type in the name of a screen file to be created or edited.
  382.  
  383.     TYPE "TestxxScr" (DO NOT press the enter key yet)
  384.  
  385.     - Field editing features -
  386.  
  387.     Before we press the enter key and create this file, lets look 
  388.     at  some of the editing features that Turbo ScrEdit  provides 
  389.     when  keying  data into a field on the screen.  
  390.         -  The  blinking cursor that is now sitting to the  right 
  391.            of the word "TestScr" is actually a "floating cursor". 
  392.            This  means that it can be moved either  direction  in 
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.                              Page  7 
  400.  
  401.            the field using the left and right arrow keys.
  402.  
  403.            PRESS LEFT ARROW (6 times)
  404.            PRESS RIGHT ARROW (3 times)  
  405.            
  406.            The cursor should now be blinking on the second 's' in 
  407.            the word "TestxxScr". The BACKSPACE key will move  the 
  408.            cursor  to the left on the screen line and delete  the 
  409.            charcter to the left of the cursor each time it moves.  
  410.             
  411.            PRESS BACKSPACE (2 times) 
  412.  
  413.            The  "xx"  was  deleted  leaving  you  with  the  word 
  414.            "TestScr".  If  you  make  a  typing  error,  you  can 
  415.            use  these  keys  to  position  the  cursor  over  the 
  416.            incorrect   characters   and   re-type   the   correct  
  417.            characters.  When the ENTER key is pressed, the entire 
  418.            field  is  read No matter where the cursor is  in  the 
  419.            field   
  420.    
  421.         -  Notice  on  the bottom line of the  screen  the  words 
  422.            INSERT, CAPS, SCROLL LOCK, NUM LOCK. 
  423.  
  424.            TRY  PRESSING THE INSERT, SCROLL LOCK, CAPS,  AND  NUM 
  425.            LOCK KEYS ON YOU KEYBOARD 
  426.  
  427.            Each  time you press one of the keys,  the  respective 
  428.            label toggles between highlighted and normal text. 
  429.  
  430.            When  the  CAPS label is highlighted,  typing  at  the 
  431.            keyboard will produce characters in uppercase.
  432.  
  433.            When  the NUM LOCK  label is highlighted, the  numeric 
  434.            key  pad  can  be used to  enter  numbers  instead  of  
  435.            cursor control characters. 
  436.  
  437.            When  SCROLL LOCK is highlighted it has no  effect  in 
  438.            Turbo ScrEdit. 
  439.   
  440.            When the INSERT label is highlighted, any key that you 
  441.            type  will  be inserted into the line at  the  cursor. 
  442.            When the INSERT label is displayed in normal text  any 
  443.            keys that you type will overtype whatever character is 
  444.            at  the  cursor. Use the rigth arrow key to  move  the 
  445.            cursor to the "t" in the middle of "TestScr".
  446.  
  447.            WITH INSERT MODE ON (highlighted) TYPE SOME CHARACTERS 
  448.            INTO THE LINE. 
  449.  
  450.            USE THE ARROW KEYS TO MOVE THE BLINKING CURSOR BACK TO
  451.            THE FIRST CHARACTER THAT YOU JUST TYPED INTO THE LINE. 
  452.  
  453.         -  The  DELete  key will delete the  character  that  the 
  454.            blinking cursor is on. 
  455.             
  456.            USE  THE DELETE KEY TO DELETE THE CHARACTERS YOU  JUST 
  457.            TYPED.
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.                              Page  8
  466.  
  467.      The field editing features that we just discussed will  work 
  468.      the  same  in just about any field on any  screen  of  Turbo 
  469.      ScrEdit. Any programs that you write that use Turbo  ScrEdit 
  470.      screens will also have the same editing features. 
  471.  
  472.      Now lets resume our discussion on specifying the screen file 
  473.      that  is to be created or edited. Make sure that  you  still 
  474.      have the screen file name "TestScr" typed on the data  entry 
  475.      line. 
  476.  
  477.      PRESS ENTER
  478.  
  479.      The bottom line of the screen now displays the message:
  480.         "<TESTSCR.SCR> does not exist. Create it? N/Y"
  481.  
  482.      PRESS "Y".
  483.     
  484.      Any  key  pressed other than "Y" is considered as  "N".  But 
  485.      since  we answered with yes the screen file is created.  The 
  486.      line where we entered the screen file name has returned to a 
  487.      inverse field with the screen file name displayed in it.
  488.  
  489.      Screen  file names must be valid MS-DOS file names. You  can 
  490.      include the drive, path, filename, and extension in the file 
  491.      name.  If  drive  or path is omitted  the  the  current  DOS 
  492.      default  path is used. If you supply the extension  part  of 
  493.      the  file name, it must be ".SCR". Turbo ScrEdit  will  only 
  494.      edit (.SCR) files.
  495.  
  496.  
  497. - Working with screen files -
  498.  
  499. We  now  have a screen file open and ready for use.  Notice  that 
  500. there  are some highlighted key labels inside the  "Work  Screen" 
  501. section  with  the  words "Next", "Prev",  "Add",  "Delete",  and 
  502. "Rename" next to them. 
  503.  
  504.     - Adding screens to a screen file -
  505.  
  506.     The  first thing we want to do is add a screen record to  the 
  507.     file.  Notice that the INS key label has the word "Add"  next 
  508.     to it. Use the insert key to add a screen to the screen file:
  509.  
  510.     PRESS INSERT
  511.  
  512.     When  you  pressed the INSERT key the top line of  the  small 
  513.     window  inside the "Work Screen" section turned into  a  data 
  514.     entry  field with a blinking cursor in it. Turbo  ScrEdit  is 
  515.     prompting you for a screen name. Screen names must start with 
  516.     an  alphabetical  character  and can contain  only  alpha  or 
  517.     numeric  characters  or the underline character. If  you  are 
  518.     going to write a program to use a screen then the screen name 
  519.     that you specify here will be used as the record name  inside 
  520.     your program, so be sure that the name conforms to the record 
  521.     naming standards of your compiler. 
  522.  
  523.     TYPE "Test" and PRESS ENTER.
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.                              Page  9
  532.  
  533.     We have just created our first screen. You can use the insert 
  534.     key  in  this fashion to add up to 128 screens  to  a  screen 
  535.     file.  Notice that the line that the screen name is on  is  a 
  536.     highlighted  line. Whenever a screen name is being  displayed 
  537.     on this line, it will be the active screen or the screen that 
  538.     is going to be edited, compiled, etc.
  539.  
  540.     - Renaming a screen -
  541.  
  542.     Locate  the  highlighted label for the TAB key that  has  the 
  543.     word  "Rename"  next to it.  Lets rename the screen  that  we 
  544.     just added from "Test" to "Test_One".
  545.  
  546.     PRESS TAB.
  547.  
  548.     The  screen  name line has gone blank, at the bottom  of  the 
  549.     screen the message "Rename <Test> to ?" has appeared.
  550.  
  551.     TYPE "Test_One" and PRESS ENTER.
  552.  
  553.     Now  that you know how to add and rename screens, try one  on 
  554.     your  own.  Lets  see if you can  add  another  screen  named 
  555.     "Test_Two"  by  yourself. When you  are  finished  "Test_One" 
  556.     should  not be visible on the screen, but don't worry  it  is 
  557.     still there.
  558.  
  559.     - Scrolling through screens in a file -
  560.  
  561.     Locate  the  "HOME" and "END" key labels next  to  the  words 
  562.     "Next" and "Prev". When you have more than one screen  stored 
  563.     in  a screen file you will use these keys for  scrolling  the 
  564.     screen  names. Experiment with the HOME and END keys  to  see 
  565.     how  the  screen  names can be scrolled in  and  out  of  the 
  566.     highlighted line. 
  567.  
  568.     - Deleting a screen from the screen file -
  569.  
  570.     We have one more control key to try before we begin editing a 
  571.     screen.  Scroll  "Test_Two"  to the top line  of  the  screen 
  572.     window:
  573.     
  574.     PRESS DEL.
  575.  
  576.     The bottom line of the screen changes to read:
  577.  
  578.     "<Test_Two> Press <Del> Again to delete or <ESC> to abort"
  579.  
  580.     Turbo ScrEdit is giving you a chance to back out of  deleting 
  581.     the screen by pressing the ESC key. 
  582.  
  583.     PRESS DEL. 
  584.  
  585.     The  screen is deleted. COMPLETELY!! so be careful with  this 
  586.     one. If you accidentally delete a screen you can retrieve  it 
  587.     from  the backup file that Turbo ScrEdit makes each time  you 
  588.     begin to edit a file. I will show you more on this later.
  589.  
  590.     Lets re-add "Test_Two".
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.                              Page  10
  598.  
  599.  
  600.     And add another screen "Test_Three".
  601.  
  602. - Automatic backup files -
  603.  
  604. There  are  two  more things I  want  to  demonstrate  concerning 
  605. working  with screen files. As I mentioned above,  Turbo  ScrEdit 
  606. will  automatically  create  backups of your work  for  you.   To 
  607. demonstrate this:
  608.  
  609. PRESS F1.
  610.  
  611. Notice  that the edit file line went blank and the  screen  names 
  612. have disappeared from the "Work Screen" section. Turbo ScrEdit is 
  613. finished with the file that we were working on and is asking  for 
  614. a new screen file name. Lets just call back "TESTSCR.SCR" again.
  615. As  you  perform  the next instruction, be  sure  to  notice  the 
  616. message  that will appear on the bottom line of the  screen  when 
  617. you press the enter key. 
  618.  
  619. TYPE "TestScr" and PRESS ENTER.
  620.  
  621. If  you  were  quick enough you saw the message  stating  that  a 
  622. backup  file  of  "TestScr" was  being  created.   Turbo  ScrEdit 
  623. checked  and  did not find a backup copy of the screen  file.   A 
  624. backup copy of a screen file will always have the same file  name 
  625. with  a  extension of ".SBK".  Turbo ScrEdit  will  automatically 
  626. create  a backup of your screen files whenever a file  is  opened 
  627. and no backup file exists in the same directory.  Next lets  look 
  628. at  what will happen when the screen backup file is present  when 
  629. the work screen is loaded. 
  630.  
  631. PRESS F1.
  632.  
  633. Again the edit file name has gone blank and the screen names have 
  634. disappeared from the screen.
  635.  
  636. TYPE "TestScr" and PRESS ENTER.
  637.  
  638. This time a backup file was found. The bottom line of the  screen 
  639. now  displays  a prompt asking you to decide whether or  not  you 
  640. want to overlay the current backup file with the current copy  of 
  641. the  screen  file.  If you respond by pressing the  "N"  key  the 
  642. backup file will not be updated. 
  643.  
  644. PRESS "Y".
  645.  
  646. Well that pretty well covers the fundamentals of creating  screen 
  647. files, and adding screen records into the screen file. By now, if 
  648. I  have  been clear in my descriptions, you should  have  a  good 
  649. understanding of how to:
  650.     1.  Exit ScrEdit and return to DOS.
  651.     2.  Use the help system.    
  652.     3.  Look at disk directories.
  653.     4.  Create a screen file.
  654.     5.  Add screens to the file.
  655.     6.  Delete screens from the file.
  656.     7.  Rename screens in the file.
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.                              Page  11
  664.  
  665.     8.  Scroll through the screens in a screen file.
  666.     9.  Select an existing screen file to edit.
  667.    10.  Make and locate Turbo ScrEdit backups of your files.
  668.     
  669. From  this point forward I am going to assume that you  know  and 
  670. understand the above list of ten items. If you are unsure of  how 
  671. to use any of the features go back now and review them until  you 
  672. are comfortable with them.
  673.  
  674.  
  675. - Editing a screen record -
  676.  
  677. Next  we  will  look  at the screen  editing  features  of  Turbo 
  678. ScrEdit.  
  679.  
  680. F2 - Editing a screen.
  681.  
  682.     Scroll  the  screen named "Test_Three" into  the  highlighted 
  683.     line  of the screen names window. Selecting the F2 option  of 
  684.     the main menu will invoke the screen editing facility. 
  685.  
  686.     PRESS F2.
  687.  
  688.     - The editor status line -
  689.  
  690.     The  menu  has  disappeared and you are looking  at  a  blank 
  691.     screen. The bottom line of the screen looks like:
  692.  
  693.     1  1 Ins <Off> Graph <Off> Back <  0> [**] For <  2> Esc=Exit F1Key=Help
  694.  
  695.     This is the screen editor status line. From left to right  it 
  696.     tells  you:  the current row and column that  the  cursor  is 
  697.     positioned  on; if the keyboard insert mode is ON or OFF;  if 
  698.     the  keyboard  graphics  character mode is  ON  or  OFF;  the 
  699.     current background and foreground color codes. It also  tells 
  700.     you that pressing ESC will return you back to the main  menu, 
  701.     and pressing the F1key will display a help screen. The F1 key 
  702.     option  here is a more local help screen, but  remember  that 
  703.     you  can get detailed help on any function of the  editor  by 
  704.     holding  down  the SHIFT key and pressing any of  the  screen 
  705.     editor control keys that we are about to discuss. 
  706.  
  707.     - Cursor movement keys - 
  708.  
  709.     As  you perform the next examples be sure to notice that  the 
  710.     row and column indicator on the far right of the status  line 
  711.     changes as the cursor moves.
  712.  
  713.     PRESS DOWN ARROW (a few times).
  714.     PRESS UP ARROW (a few times).
  715.     PRESS LEFT ARROW (a few times).
  716.     PRESS RIGHT ARROW (a few times).
  717.      
  718.     The  arrow  keys move the cursor one screen position  in  the 
  719.     respective directions each time a key is pressed.
  720.  
  721.     PRESS TAB (a few times).
  722.     PRESS SHIFT TAB (a few times).
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.                              Page  12
  730.  
  731.  
  732.     This time the cursor moves in 5 character increments.
  733.  
  734.     PRESS BACKSPACE
  735.  
  736.     The  backspace  key has the same effect that the  left  arrow  
  737.     key did. 
  738.  
  739.     PRESS ENTER
  740.  
  741.     The  enter key always causes the cursor to move to the  first 
  742.     character of the next line.
  743.  
  744.      
  745.     - Insert and overtype modes - 
  746.  
  747.     Next  to the row and column indicators of the status line  is 
  748.     the insert mode indicator. Observe how this indicator changes 
  749.     as you perform the next example.
  750.  
  751.     PRESS INSERT (a few times(key pad 0)).
  752.     
  753.     Notice  that the Insert mode indicator toggles between  <Off> 
  754.     and  <On  >. When insert mode is ON the characters  that  you 
  755.     type  will be inserted into the current line of text and  the 
  756.     characters to the extreme right of the line will disappear as 
  757.     they  scroll  off  the  line. When Insert  mode  is  OFF  the 
  758.     characters typed will overwrite any characters on the line.
  759.  
  760.     - Keyboard graphics mode -
  761.  
  762.     PRESS F2 (a few times)
  763.  
  764.     Notice  that  the Graph indicator toggles between  <Off>  and 
  765.     <On> each time you press F2 key.       
  766.  
  767.     When  GRAPH  mode  is ON, the  keyboard  will  type  graphics 
  768.     characters  instead of numbers and  alphabetical  characters. 
  769.     When GRAPH mode is OFF, normal keyboard characters are typed.
  770.  
  771.     - Quick reference editor help screen -
  772.  
  773.     PRESS F1
  774.  
  775.     The local screen editor help screen is displayed. This screen 
  776.     is  used  as  a quick reference  for  accessing  the  editors 
  777.     special functions.
  778.  
  779.     The help screen is divided into three sections:
  780.         1.  Fkey assignments.
  781.         2.  Keyboard graphics and line drawing assignments.
  782.         3.  Other special key function to control color selection,
  783.             and cursor movement.
  784.     
  785.     PRESS ANY KEY - to return to the screen editor.
  786.  
  787.     Lets explore using the F2 key option next. 
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.                              Page  13
  796.  
  797.     PRESS F2 until GRAPH <OFF> shows on the status line.
  798.  
  799.     PRESS ENTER - to get to the start of the next line.
  800.  
  801.     TYPE "1234567890 abcdefghijklmnopqrstuvwxyz" and press ENTER
  802.  
  803.     PRESS F2 (GRAPH <ON >).
  804.  
  805.     TYPE "1234567890 abcdefghijklmnopqrstuvwxyz" and press ENTER
  806.  
  807.     This time we typed graphics characters instead of numbers and 
  808.     alphabetical characters. 
  809.  
  810.     PRESS F1
  811.     
  812.     Examine the "Keyboard Graphics Character Assignments" part of 
  813.     the help screen. In the top part of this section you see  the 
  814.     various  extended  graphics characters, each with  a  regular 
  815.     keyboard  character  to it's left. In the bottom  portion  of 
  816.     this  section  you  see a group of  boxes.  These  boxes  are 
  817.     arranged  to make it easy to locate any of the  special  line 
  818.     drawing  characters you may need when drawing  screen  forms. 
  819.     Notice  that some of the characters in each of the boxes  are 
  820.     highlighted   with  regular  keyboard  characters  to   thier 
  821.     immediate  left.  Typing the highlighted  keyboard  character 
  822.     while  in  graphics  mode  will  produce  the  line   drawing 
  823.     character  to  it's  right. Notice also  that  a  upper  case 
  824.     character or shifted key will produce a different  characters 
  825.     that the lower case character or a un-shifted key.
  826.  
  827.     Press any key to return to the screen that we are editing.
  828.   
  829.     PRESS ANY KEY 
  830.  
  831.     Next,  take a few minutes and draw some lines and boxes.  Use 
  832.     the  F1  help option to determine which keys  to  use.  Turbo 
  833.     ScrEdit has line and box drawing functions, but this exercise 
  834.     is  intended  to  let you get  comfortable  using  the  quick 
  835.     reference  screen,  so  draw these boxes  by  typing  in  the 
  836.     characters  that you choose for the quick  reference  screen. 
  837.     Mix  some  text in with the graphics characters  by  toggling 
  838.     graph mode ON and OFF as you type. 
  839.  
  840.     Experement all that you wish before continuing. 
  841.  
  842.     PRESS THE F1KEY again. 
  843.  
  844.     Locate the Video Color Control keys in top part of the  lower 
  845.     right  hand area of the screen.  You see that pressing  these 
  846.     keys will change the foreground and background colors of  the 
  847.     characters  that  you type. Press any key to  return  to  the 
  848.     editor screen.
  849.  
  850.     Locate the "Back < 0> [**] For < 2>" part of the status line. 
  851.     Notice  the changes that occure here as you perform the  next 
  852.     example.
  853.  
  854.     TRY PRESSING THE  HOME, END, PGUP, and PGDN keys.
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.                              Page  14
  862.  
  863.  
  864.     The  "[**]"  part of the status line changes to  reflect  the 
  865.     current background and foreground color attributes that  will 
  866.     be used for the next characters typed on the screen. 
  867.  
  868.     Now Type some characters and graphics characters in different 
  869.     colors (or shades on a monochrome monitor.)
  870.  
  871.     Now  move the cursor up into one of the lines that  you  have 
  872.     typed  and experiment with the insert (INS) and delete  (DEL) 
  873.     keys. When you toggle Insert ON the characters that you  type 
  874.     are  inserted  into the line, with insert  OFF  you  overtype  
  875.     characters.  The  delete  key deletes the  character  at  the 
  876.     cursor.
  877.  
  878.     - Inserting blank lines into a screen -
  879.  
  880.     PRESS F3.
  881.  
  882.     This key inserts blank lines into the screen.
  883.  
  884.     - Deleting lines from the screen -
  885.  
  886.     PRESS F4. 
  887.  
  888.     This key deletes lines from the screen.
  889.  
  890.     - Saving and Undoing screens -
  891.  
  892.     Turbo  ScrEdit  has an undo feature that lets you  restore  a 
  893.     screen to its original state if you happen to make a  mistake 
  894.     and delete the wrong line or characters, or type in the wrong 
  895.     thing on a screen. In order to make the undo feature work for 
  896.     you,  you  will want to store a screen  occasionally  as  you 
  897.     design it. To demonstrate this, we know that when we  started 
  898.     we  started with a blank screen, so lets store the screen  as 
  899.     it look right now. 
  900.  
  901.     HOLD DOWN ALT and PRESS F5 
  902.  
  903.     Turbo  Scredit prompts you on the bottom line of  the  screen 
  904.     with:
  905.       
  906.         "Okay to store N/Y" 
  907.  
  908.     PRESS "Y"
  909.  
  910.     We  have just stored the screen as it now appears. The ALT  - 
  911.     F5 keys are used in conjunction with the F5 undo feature. Any 
  912.     changes  that  you make to a screen can be  un-done  back  to 
  913.     whatever  the screen looked like when you entered the  editor 
  914.     or back to what the screen looked like the last time you used 
  915.     the ALT - F5 keys to store it. To demonstrate this:
  916.  
  917.     TYPE SOME TEXT ON THE SCREEN - anything you type will do.
  918.   
  919.     PRESS F5.
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.                              Page  15
  928.  
  929.     The bottom of the screen displays the message:
  930.  
  931.         "Are you sure you want To Undo  screen (N,Y)"
  932.                        
  933.     PRESS "Y".
  934.  
  935.     The text that you typed on the screen disappeared. It was un-
  936.     done.
  937.  
  938.     AGAIN TYPE SOME TEXT ON THE SCREEN - anything you type  will 
  939.     do.
  940.   
  941.     HOLD DOWN ALT and PRESS F5
  942.  
  943.     PRESS Y    
  944.  
  945.     PRESS F5.
  946.  
  947.     The bottom of the screen displays the message:
  948.  
  949.         "Are you sure you want To Undo  screen (N,Y)"
  950.                        
  951.     PRESS "Y".
  952.  
  953.     This  time the text that you typed was not removed  from  the 
  954.     screen because ALT - F5 made the changes permanent. You don't 
  955.     have  to always use ALT and F5 to store the screen. When  you 
  956.     exit  the screen editor back to the main menu you  will  have 
  957.     the  option of storing the screen. You only need to  use  ALT 
  958.     and  F5  when you are happy with the screen in  progress  and 
  959.     don't  want to take a chance of losing it to a power  failure 
  960.     or some other accident.
  961.  
  962.     - Cutting and pasting screen text -
  963.  
  964.     Next  lets  look at the the cut and paste  functions.  It  is 
  965.     often  desirable to be able to replicate or move portions  of 
  966.     the screen as you are creating it.
  967.  
  968.     USE  THE  ARROW KEYS TO MOVE THE CURSOR TO ONE OF  THE  LINES 
  969.     THAT YOU HAVE TYPED ON. 
  970.  
  971.     PRESS F6.
  972.  
  973.     F6  key  starts the process of copying blocks, or  lines,  or 
  974.     moving  blocks of text around on the screen. Notice that  the 
  975.     message line of the screen now reads: 
  976.  
  977.         "** Copy <B>lock or Copy <L>ine or <M>ove block **"
  978.  
  979.     - Copying a block of text - 
  980.    
  981.     For our first experiment lets use the "B" option and copy a
  982.     block of the screen.
  983.  
  984.     PRESS "B".
  985.  
  986.     The message line of the screen has changed to:
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.                              Page  16
  994.  
  995.  
  996.         "** Highlight a Block of Text **  F1key = Help  Escape = Exit ".
  997.  
  998.     The message tells us that pressing the Escape key will  abort 
  999.     the  block  copying procedure and return you to  the  editing 
  1000.     mode,  Or  pressing the F1 key will invoke the  on-line  help 
  1001.     system  and  display the manual text describing  copying  and 
  1002.     moving blocks of text.
  1003.  
  1004.     Copy text is a four step procedure: first we must highlight a 
  1005.     section  of the screen that we want to copy; second we  press 
  1006.     the enter key to grab the highlighted section of the  screen; 
  1007.     third we move the block of text to the postion on the  screen 
  1008.     where  we want to place it; fourth we press the enter key  to 
  1009.     make it permanent. 
  1010.  
  1011.     So  lets begin with the first step. The blinking  cursor  has 
  1012.     now become a highlighted character. The term highlighted here 
  1013.     means  that  the  characters that are being  selected  to  be 
  1014.     copied  will be shown in inverse colors. If the text  of  the 
  1015.     screen  normally  has  a black background  then  it  will  be 
  1016.     highlighted with white background and a black foreground.  Or 
  1017.     if   the  characters  being  highlighted  have  a   non-black 
  1018.     background  color,  then they will be highlighted  as  bright 
  1019.     white characters on a black background.
  1020.  
  1021.     PRESS the RIGHT ARROW  10 to 15 times. 
  1022.  
  1023.     The highlighted area expanded horizontally each time you 
  1024.     pressed the right arrow key.
  1025.  
  1026.     PRESS the DOWN ARROW 5 or 6 times. 
  1027.  
  1028.     The  highlighted area expanded vertically to cover more  text 
  1029.     each time you press down arrow key.
  1030.  
  1031.     PRESS the LEFT ARROW  2 times. 
  1032.  
  1033.     The highlighted block of the screen is reduced horizontally.
  1034.  
  1035.     PRESS the UP ARROW 2 times. 
  1036.  
  1037.     The highlighted block of the screen is reduced vertically.
  1038.  
  1039.     So we see that the arrow keys are used define the size of the 
  1040.     area that we will be copying. The screen text that is  inside 
  1041.     the  highlighted  area  will be the text to  be  copied.  The 
  1042.     highlighted block may be repositioned anywhere on the  screen 
  1043.     by using the arrow keys while holding down the shift key.
  1044.  
  1045.     HOLD DOWN ONE OF THE SHIFT KEYS.
  1046.  
  1047.     PRESS UP    3 times to move the highlighted block up. 
  1048.     PRESS DOWN  3 times to move the highlighted block down.
  1049.     PRESS RIGHT 3 times to move the highlighted block right. 
  1050.     PRESS LEFT  3 times to move the highlighted block left.
  1051.  
  1052.     Remember  Step  one was to highlight the area of  the  screen 
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.                              Page  17
  1060.  
  1061.     that we want to copy. Take time now to use the keys described 
  1062.     above  to  highlight  a section of the  text  that  we  typed 
  1063.     earlier. 
  1064.      
  1065.     The  second  step  is to "grab" the  section  of  the  screen 
  1066.     highlighted by pressing the enter key.
  1067.  
  1068.     PRESS ENTER.
  1069.  
  1070.     The  highlighted  block has disappeared and  the  screen  has 
  1071.     changed back to its original appearance. On the bottom of the 
  1072.     screen  there  is now a message asking you  to  position  the 
  1073.     block  where  you want it on the screen and press  the  enter 
  1074.     key.  Remeber this is step three. 
  1075.      
  1076.     PRESS DOWN ARROW a few times to move the block of text down.
  1077.     PRESS UP ARROW a few times to move the block of text up. 
  1078.     PRESS RIGHT ARROW a few times to move the block of text right. 
  1079.     PRESS LEFT ARROW a few times to move the block of text left.
  1080.  
  1081.     The Text that was highlighted now moves around on the  screen 
  1082.     freely  without  disturbing any of the text  that  it  passes 
  1083.     over.  Move the text to another part of the screen using  the 
  1084.     keys  listed above. Step four was to press enter to make  the 
  1085.     text permanent on the screen.
  1086.  
  1087.     PRESS ENTER.
  1088.  
  1089.     The  block of text is now permanent in that position  of  the 
  1090.     screen.   Remeber  these four steps. They will alway  be  the 
  1091.     same using any of the text copy or move operations.
  1092.  
  1093.     - Copying a line of text -
  1094.  
  1095.     This time lets look at the "L" option for copying a line of
  1096.     the screen.
  1097.  
  1098.     PRESS F6
  1099.  
  1100.     PRESS "L"
  1101.  
  1102.     Notice this time that the entire line of the screen where the 
  1103.     cursor  was setting is now inverted. Actualy the  "L"  option 
  1104.     works  much like the "B" option, except it will do the  first 
  1105.     step  for you and highlight the entire line of text.  If  you 
  1106.     only  want  to  copy the highlighted line of  text,  you  can 
  1107.     proceed  to step two (press enter), three (position the  line 
  1108.     on  the  screen),  and four (press enter  to  make  the  line 
  1109.     permanent.) But, if you decided that you wanted more or  less 
  1110.     text  than  what is highlighted, you can use  the  same  keys 
  1111.     described  in  step one of the "B"lock option to  change  the 
  1112.     size  of  the block of text to copy, and  then  proceed  with 
  1113.     steps two through four.
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.                              Page  18
  1126.  
  1127.     - Moving a block of text -
  1128.   
  1129.     PRESS F6 again
  1130.  
  1131.     This  time try the "M"ove option on your own. It  works  just 
  1132.     like  the "B"lock option only it will actually cut the  block  
  1133.     of text out of the screen and move it.  Take time now to play 
  1134.     with  these  features until you are satisfied that  you  have 
  1135.     mastered cutting and pasting. 
  1136.  
  1137.     - Drawing and painting lines and boxes -
  1138.  
  1139.     Next  lets  look at the line and box  drawing,  and  painting 
  1140.     features of Turbo ScrEdit.
  1141.  
  1142.     The  F7, F8, and F10 keys are used for drawing lines,  boxes, 
  1143.     and  painting areas of the screen. The line and  box  process 
  1144.     will always begin by using the F10 key to specify the type of 
  1145.     character  that the line or box is to have as a border.  Then 
  1146.     the F7 key is used to mark the left extreme end of a line  or 
  1147.     corner  of  a box, and the F8 key is used to mark  the  right 
  1148.     extreme  end of a line or corner of a box. When both  the  F7 
  1149.     key and F8 key have been pressed Turbo ScrEdit will draw  the 
  1150.     line or box between the two points.
  1151.  
  1152.     Lets  start  by  drawing a line. First  we  must  tell  Turbo 
  1153.     ScrEdit  what type of line we want to draw. Pressing the  F10 
  1154.     key begins the process.
  1155.  
  1156.     PRESS F10.
  1157.  
  1158.     The message line now displays:
  1159.  
  1160.     "Enter ASCII Char code 00-255 or <S>ingle <D>ouble <B>old <P>aint"
  1161.  
  1162.     Turbo ScrEdit is prompting for the type of character that you 
  1163.     want  to use to draw the line with. You can enter  any  ASCII 
  1164.     character  code  (0 thru 255), or select  the  extended  line 
  1165.     drawing  characters  for  <S>ingle line,  <D>ouble  line,  or 
  1166.     <B>old line.
  1167.  
  1168.     For this example lets draw a single line.
  1169.  
  1170.     PRESS "S" and PRESS ENTER.
  1171.  
  1172.     USING THE ARROW KEYS MOVE THE CURSOR TO ROW 5 AND COL 1.
  1173.  
  1174.     PRESS F7. 
  1175.  
  1176.     The message on the bottom of the screen tells you to position 
  1177.     the  cursor  on the extreme bottom right corner of  the  line 
  1178.     that we are about to draw.  
  1179.     
  1180.     **  NOTE  **  The following is a very  important  concept  to 
  1181.     understand about drawing lines verses boxes. In text mode our 
  1182.     screen consists of 24 rows and 80 columns. Turbo ScrEdit will 
  1183.     draw  lines horizontally across the screen when both  the  F7 
  1184.     and F8 keys are used to mark positions on the same row of the 
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.                              Page  19
  1192.  
  1193.     screen. Likewise vertical lines are drawn on the screen  when 
  1194.     the  the F7 and F8 keys mark position on the same  column  of 
  1195.     the screen. 
  1196.  
  1197.     USING  THE RIGHT ARROW KEY, MOVE THE CURSOR TO COLUMN  80  OF
  1198.     THE SAME ROW 5.
  1199.  
  1200.     PRESS F8.
  1201.  
  1202.     A line was drawn horizontally acrost the screen.
  1203.  
  1204.     PRESS F10 again.
  1205.      
  1206.     PRESS "S" again.
  1207.   
  1208.     USE THE ARROW KEYS TO MOVE THE CURSOR TO ROW 1 AND COLUMN 40.
  1209.  
  1210.     PRESS F7.
  1211.  
  1212.     USE  THE  DOWN  ARROW KEY TO MOVE THE CURSOR TO  ROW  24  AND 
  1213.     COLUMN 40.
  1214.  
  1215.     PRESS F8.
  1216.  
  1217.     This time the line was drawn vertical on the screen.
  1218.  
  1219.     Use  the HOME key to change the current background color  and 
  1220.     press the F7 key or F8 key again. The line that we just  drew 
  1221.     will  change  according  to the current  colors.  Using  this 
  1222.     feature  you can try different colors until you find the  one 
  1223.     that suits your needs. 
  1224.  
  1225.     Next lets draw some boxes on the screen.
  1226.  
  1227.     PRESS F10.
  1228.  
  1229.     PRESS "D" for Double line and PRESS ENTER.
  1230.  
  1231.     USE THE ARROW KEYS TO MOVE THE CURSOR TO ROW 10 COLUMN 10.
  1232.  
  1233.     PRESS F7.
  1234.  
  1235.     USE THE ARROW KEYS TO MOVE THE CURSOR TO ROW 20 COLUMN 70.
  1236.  
  1237.     PRESS F8. 
  1238.  
  1239.     ScrEdit  is now asking you if it should paint the  area  with 
  1240.     the current color. 
  1241.  
  1242.     PRESS "N".
  1243.  
  1244.     Using the HOME or END keys select the background (Back< 1>).
  1245.     Using the PgUP or PgDn keys select the foreground (For <15>).
  1246.  
  1247.     PRESS F8.
  1248.  
  1249.     This time answer yes to the "Paint?" prompt.
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.                              Page  20
  1258.  
  1259.     PRESS "Y".
  1260.  
  1261.     Using  the  paint  option is very much  like  using  the  box 
  1262.     option.  Next  we will use the F10 key again and  select  the 
  1263.     <P>aint option. The paint option works just like box  drawing 
  1264.     only  it  does  not draw a border around the  area,  it  just 
  1265.     paints the current colors into the defined area. Go ahead and 
  1266.     try painting the entire screen with different colors.
  1267.  
  1268.     Using the HOME or END keys select the background (Back< 7>).
  1269.     Using the PgUP or PgDn keys select the foreground (For <15>).
  1270.  
  1271.     PRESS F10.
  1272.  
  1273.     PRESS "P"  AND PRESS ENTER.
  1274.  
  1275.     USE THE ARROW KEYS TO MOVE THE CURSOR TO ROW 12 COLUMN 15.
  1276.  
  1277.     PRESS F7.
  1278.  
  1279.     USE THE ARROW KEYS TO MOVE THE CURSOR TO ROW 18 COLUMN 65.
  1280.  
  1281.     PRESS F8. 
  1282.  
  1283.     Turbo  ScrEdit  has painted the current area  with  a  bright 
  1284.     background and bright white foregroud.
  1285.      
  1286.     That  pretty  well describes using the line, box,  and  paint 
  1287.     options  of  the screen editor. There are some  cautions  you 
  1288.     should  keep  in  mind when using the line  and  box  drawing 
  1289.     features.
  1290.     1.  NEVER  erase a box or screen by using 0 foreground and  0 
  1291.         background  colors.  It  leaves  the  characters  on  the 
  1292.         screen, you just don't see them. The correct way to erase 
  1293.         a line or box is to re-draw it using spaces:
  1294.         a.  Press F10, type 32 and PRESS ENTER.
  1295.             (Remember 32 is the ASCII code for Space).
  1296.         b.  Using the F7 and F8 keys mark the corners for the new 
  1297.             box  on the corners of the old box or line  that  you 
  1298.             want to erase.
  1299.  
  1300.     - Typing any ASCII character code - 
  1301.  
  1302.     We  have one key left to explore. When the extended  graphics 
  1303.     characters were assigned to the keyboard for use in  graphics 
  1304.     mode,  there  was  not enough keys  to  accommodate  all  the 
  1305.     characters  codes.  To  give you access  to  the  full  ASCII 
  1306.     character  set, Turbo ScrEdit will let you assign  any  ASCII 
  1307.     code 0 thru 255 to the lower case "v" key. 
  1308.  
  1309.     PRESS F9.
  1310.  
  1311.     The message line displays the prompt:
  1312.         " Enter "v" an ASCII character code (0 thru 255) "
  1313.  
  1314.     TYPE 17 and PRESS ENTER.
  1315.  
  1316.     PRESS F2 (until Graph mode is ON.)
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.                              Page  21
  1324.  
  1325.  
  1326.     PRESS "v" 
  1327.     
  1328.     The "v" key now types a left pointer.
  1329.  
  1330.     PRESS ESC.
  1331.  
  1332.     The message line now prompts:
  1333.     " Save Screen (Y/N) "
  1334.  
  1335.     PRESS "Y". 
  1336.  
  1337.     Our  editing  session has ended and we are back to  the  main 
  1338.     menu screen. Turbo ScrEdit has stored the screen and is ready 
  1339.     for  another  task. The exercise that we  just  finished  has 
  1340.     given  you  a  little sample of  all  the  editing  functions 
  1341.     supported by Turbo ScrEdit. 
  1342.  
  1343.     Now  lets  use what we have learned to draw  a  more  serious 
  1344.     screen  and  discuss  how to define data  entry  and  display 
  1345.     fields on a screen. Here is a list of the rules for  defining 
  1346.     screen fields:
  1347.     1.  A screen field starts with a left bracket "[".
  1348.     2.  A screen field can be from 1 to 78 characters in length.
  1349.     3.  A screen field cannot span lines on the screen.
  1350.     4.  A screen field name cannot exceed 16 characters and  must 
  1351.         conform  with the rules that apply to naming fields in  a 
  1352.         record for your particular compiler. 
  1353.     5.  A screen field must end with a right bracket "]".
  1354.     6.  You can define from 0 to 128 fields on a screen.
  1355.         (a screen with no fields might be used for menus,
  1356.         help screens, etc.).
  1357.  
  1358.     Since  we were experimenting with "Test_Three", lets use  the 
  1359.     screen  "Test_One" for our next example. Use the HOME  and/or 
  1360.     END  keys to scroll "Test_One" to the top line of  the  "Work 
  1361.     Screens" window.
  1362.  
  1363.     PRESS F2.
  1364.  
  1365.     As  we re-enter the screen editor, the screen has  gone  bank 
  1366.     with only the editor status line showing on the bottom of the 
  1367.     screen.   The  screen  that  you  are  about  to  draw   will 
  1368.     demonstrate defining and using screen fields. As you draw the 
  1369.     screen,  experiment by adding lines and boxes to section  off 
  1370.     the  areas  of the screen. Make it look the way  you  like  a 
  1371.     screen to look.
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.                              Page  22
  1390.  
  1391.     Purchase History:
  1392.         ---------------------------------------------------- 
  1393.         Year     Quarter 1  Quarter 2  Quarter 3  Quarter 4   
  1394.         ----     ---------- ---------- ---------- ---------- 
  1395.        [Yr_1]    [Qt_1a   ] [Qt_2a   ] [Qt_3a   ] [Qt_4a   ]  
  1396.        [Yr_2]    [Qt_1b   ] [Qt_2b   ] [Qt_3b   ] [Qt_4b   ]  
  1397.        [Yr_3]    [Qt_1c   ] [Qt_2c   ] [Qt_3c   ] [Qt_4c   ]  
  1398.         ---------------------------------------------------- 
  1399.  
  1400.     Customer:
  1401.         ---------------------------------------------
  1402.         Name....[Name_Field                         ]               
  1403.         Address.[Address_Line_1                     ]               
  1404.                 [Address_Line_2                     ]               
  1405.         City....[City         ]                                     
  1406.         State...[St]  Zip Code...........[ZipCode   ]
  1407.  
  1408.         Phone...[Ph1]-[Ph2]-[Ph3 ]                    
  1409.         ---------------------------------------------
  1410.  
  1411.  
  1412.     When you are finished:
  1413.  
  1414.     PRESS ESC (To exit to the main menu).
  1415.  
  1416.     PRESS "Y" (To save your work).
  1417.  
  1418. We  have a screen now, but Turbo ScrEdit does not  know  anything 
  1419. about the screen accept what it's name is and where it is stored. 
  1420. The next thing we want to do with our screen is compile it  using 
  1421. the main menu F4 option. When a screen is compiled several things
  1422. happen:
  1423.  
  1424.     1 - The screen is scanned to locate any fields that have been 
  1425.         defined   on it. The field name and it's row  and  column 
  1426.         coordinates  are  placed  in a  table  along  with  other 
  1427.         information.
  1428.  
  1429.     2 - Turbo ScrEdit then allows you to define what type of data 
  1430.         each  field will be allowed to contain. During this  step 
  1431.         you  can assign a field help message and data  validation 
  1432.         ranges and procedures.
  1433.  
  1434.     3 - Finally  when  you are finished Turbo ScrEdit  creates  a 
  1435.     file  of source code definitions for the buffers  written  in 
  1436.     the  programming  language of your choice. If you  load  this 
  1437.     file  into your text editor you will find the fields of  your 
  1438.     screen are defined as fields in a record definition.         
  1439.  
  1440. Ok, now that you have an idea of just what is about to happen:
  1441.  
  1442. PRESS F4.
  1443.  
  1444.     The main menu screen has disappeared and the compiler  screen 
  1445.     is  displayed.  In  the bottom section of  the  screen  Turbo 
  1446.     ScrEdit  is  displaying the current default values that  will 
  1447.     be used by the  screen compiler.
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.                              Page  23
  1456.  
  1457.     Turbo  ScrEdit needs to know which language compiler you  are 
  1458.     working  with.  In the bottom part of the screen there  is  a 
  1459.     line  that  starts  with  a  highlighted  "L"  on  the   word 
  1460.     "Language".  Pressing  the "L" key will  scroll  through  the 
  1461.     language selections currently supported by Turbo ScrEdit.
  1462.     
  1463.     PRESS "L" (a few times)
  1464.  
  1465.     Notice  that  each time you press the "L" key,  the  language 
  1466.     description  changes.  The programming  language  that  Turbo 
  1467.     ScrEdit  will use when creating source code is  displayed  on 
  1468.     this line. Languages currently supported are:
  1469.  
  1470.         Turbo Pascal 3.0, 4.0, 5.0
  1471.         Turbo C      1.5, 2.0
  1472.  
  1473.     Now select your language before continuing on.
  1474.  
  1475.     Next  you  will specify for Turbo ScrEdit what  default  data 
  1476.     type  it  will  use for any new fields on  a  screen.  It  is 
  1477.     important  that you understand here that these defaults  will 
  1478.     only  apply  to any field names that have been added  to  the 
  1479.     screen  since the last time it was compiled. Any field  types 
  1480.     that  have  been  assigned to screen  fields  in  a  previous 
  1481.     compile session will remain as they were originally defined. 
  1482.     Locate the line on the screen that begins with a  highlighted 
  1483.     "F"  in the word "Field Type". There are nine  possible  data 
  1484.     types: 
  1485.       0   : Integer values (A real number with decimals truncated).
  1486.       2-7 : Specifies  the  absolute  decimal  position  for  the 
  1487.             field.
  1488.       8   : Alphabetical characters (A-Z,a-z,space).
  1489.       9   : Any keyboard character is accepted.
  1490.             
  1491.    PRESS "F" (a few times)
  1492.  
  1493.     Notice  that  each time you press the "F"  key   a  different 
  1494.     field  type  is described. For type 0 thru 7  an  example  is 
  1495.     shown  that  illustrates the position of or  absence  of  the 
  1496.     decimal  position. For instance with a type of 3 the  example 
  1497.     shows  "0000.00".  The decimal position is  in  the  absolute 
  1498.     third position of the field.
  1499.  
  1500.     PRESS "F" (until the line shows <3> and 00000.00)
  1501.  
  1502.     With  this setting all the new fields on the screen  will  be 
  1503.     defined  as  numeric fields of type real. Of course  we  know 
  1504.     that the fields in the name and address section of the screen 
  1505.     certainly  will not contain numeric values. But we  will  fix 
  1506.     that  in  a  minute. The important thing  here  is  that  the 
  1507.     default we selected will meet the need for most of the fields 
  1508.     on the screen.
  1509.  
  1510.     Next,  locate  the last line that begins with  a  highlighted 
  1511.     "D".   Use  the  "D" key to set the  default  field  type  to 
  1512.     either "data entry fields" or "display only fields". The term 
  1513.     "data  entry" means that the user of your program  will  type 
  1514.     a value into the field on the screen. The term "display only" 
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.                              Page  24
  1522.  
  1523.     means  that your program will only be able to show  the  user 
  1524.     information in these fields. The user of you program will not 
  1525.     be  able to change the contents of a display only  field,  he 
  1526.     can only look at it. When the words DATA ENTRY are  displayed 
  1527.     in  upper  case, all new fields  will default to  data  entry 
  1528.     fields.  When the words DISPLAY ONLY are displayed  in  upper 
  1529.     case the field will not allow data to be entered into it.
  1530.  
  1531.     PRESS "D" (a few times..Stop when the line reads 
  1532.                 "display only/DATA ENTRY")
  1533.  
  1534.     Now on the bottom of the screen we see the prompt:
  1535.  
  1536.     "Accept values as shown? (Y)  F1=Help".
  1537.        
  1538.     Before you continue make sure that the language type is set 
  1539.     correctly for your compiler, and that the default field type 
  1540.     is set to 3 (00000.00), and that field type will be DATA 
  1541.     ENTRY. When you have check these values you may continue.
  1542.  
  1543.     PRESS "Y"
  1544.  
  1545.     Turbo  ScrEdit will perform a number of checks on the  screen 
  1546.     as  it compiles it. If any error conditions are  detected  an 
  1547.     error  listing  will be displayed. Study the  error  messages 
  1548.     before  returning to the main menu, or if you prefer you  can 
  1549.     print  a hard copy listing of the errors.  Pressing  any  key 
  1550.     will  return  you to the main menu where you can use  the  F2 
  1551.     option to make the needed corrections to the screen.
  1552.  
  1553.     When  the  screen compiles successfully, Turbo  ScrEdit  will 
  1554.     display  the top portion of the screen with the first  field, 
  1555.     "Yr_1", underlined with a row of carats "^^^^^".
  1556.  
  1557.     Notice that the row and column position of the field, and the 
  1558.     length,  type,  and  display type for this  field  are  being 
  1559.     displayed.  The blinking cursor is on the type field.  Inside 
  1560.     the type section of the screen you will see descriptions  for 
  1561.     the value that is allowed in the type field (0, 2 thru 9). 
  1562.  
  1563.     This  is a year field, we know that year will be  an  integer 
  1564.     value so we must change the "3" to a "0". 
  1565.  
  1566.     PRESS 0
  1567.     
  1568.     The cursor advanced to the field labeled "display only". Lets 
  1569.     make all the purchase history fields on this top line display 
  1570.     only.
  1571.  
  1572.     PRESS "D" and PRESS ENTER
  1573.  
  1574.     PRESS TAb
  1575.     PRESS "D" and PRESS ENTER
  1576.  
  1577.     PRESS TAb
  1578.     PRESS "D" and PRESS ENTER
  1579.      
  1580.     PRESS TAb
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.                              Page  25
  1588.  
  1589.     PRESS "D" and PRESS ENTER
  1590.       
  1591.     PRESS TAb
  1592.     PRESS "D" and PRESS ENTER
  1593.  
  1594.     The  cursor  should now be on the field "Yr_2"  on  the  next 
  1595.     line.  Define this field as 0 then PRESS the ENTER key  until 
  1596.     the line of carats underlines "Yr_3". Define "Yr_3" as 0 also 
  1597.     and  PRESS  the  ENTER key until the carats  under  line  the 
  1598.     "Name_Field".
  1599.  
  1600.     As the name implies, this is a name field so we know that  we 
  1601.     must be allowed to key in alphabetical characters and in some 
  1602.     cases numbers.  We need to change the default from 3 to 9  so 
  1603.     we can key any characters into this field. 
  1604.  
  1605.     PRESS "9" and PRESS ENTER
  1606.  
  1607.     The next field "Address_Line_1" is now displayed with the row 
  1608.     of carats under it. Address_Line_1 and Address_Line_2  should 
  1609.     also allow any key to be keyed into it. Change them to type 9 
  1610.     also.
  1611.  
  1612.     PRESS "9"
  1613.     PRESS ENTER
  1614.     PRESS "9"
  1615.     PRESS ENTER
  1616.  
  1617.     Now  "City"  is  the field that is underlined by  carats.  We 
  1618.     will restrict this field to only allowing alpha characters:
  1619.  
  1620.     PRESS "8"
  1621.     PRESS ENTER
  1622.  
  1623.     For "St" lets do the same:
  1624.    
  1625.     PRESS "8"
  1626.     PRESS ENTER
  1627.  
  1628.     The  phone  fields should be defined as integer  type  0.  No 
  1629.     decimals  will  be allowed in these fields. Enter  zeros  for 
  1630.     each of these fields.
  1631.  
  1632.     Now turn your attention to the function key labels that  fill 
  1633.     the middle of the screen.
  1634.  
  1635.     PRESS F1 (Help)
  1636.  
  1637.     A help menu is displayed notice that pressing different  keys 
  1638.     will give you help on different topics about using the screen 
  1639.     compiler. If you press one of these keys you will invoke  the 
  1640.     on-line help system and the topic that corresponds to the key 
  1641.     will be displayed. 
  1642.  
  1643.     PRESS ESC - to return to the compiler screen.
  1644.  
  1645.     PRESS F5 
  1646.     
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.                              Page  26
  1654.  
  1655.     Pressing this key will always place the  line of carats under the
  1656.     first field of the screen.
  1657.  
  1658.     PRESS F6
  1659.  
  1660.     Pressing this key will always place the line of carats under the
  1661.     last field of the screen.
  1662.  
  1663.     PRESS F7 (a few times)
  1664.  
  1665.     Pressing this key moves the carat prompt to the previous field 
  1666.     on the screen.
  1667.  
  1668.     PRESS F8 
  1669.  
  1670.     Pressing this key moves the carat prompt to the next field on the
  1671.     screen.
  1672.  
  1673.     As  you  can  see the F5, F6, F7, and F8 keys  allow  you  to 
  1674.     scroll around through the screen fields. Be aware that if you 
  1675.     press  the F8 key when the carat prompt is positioned on  the 
  1676.     last field of the screen you will end the compile and  return 
  1677.     to the main menu.
  1678.   
  1679.     Now  I  want to give you a taste of using  screen  validation 
  1680.     procedures.  Let's  define  a  user  help  message  for   the 
  1681.     "Name_Field", and make it a required field. Don't worry about 
  1682.     understanding  the  next few instructions just  now.  I  will 
  1683.     explain them to you later in detail.
  1684.  
  1685.     Scroll  through the fields until the line of carats is  under 
  1686.     the field "Name_Field".
  1687.  
  1688.     PRESS F2
  1689.  
  1690.     The  middle  line  in the bottom portion of  the  screen  has 
  1691.     changed  to  a  highlighted field with  the  blinking  cursor 
  1692.     waiting in it. Notice also that the function key labels  have 
  1693.     changed. On the bottom line of the screen the keyboard toggle 
  1694.     key status is displayed. 
  1695.  
  1696.     TYPE  HELP  'Fill out this field with a customer  name.'  and 
  1697.     PRESS ENTER
  1698.  
  1699.     TYPE "REQUIRED" and PRESS ENTER
  1700.  
  1701.     PRESS ESC
  1702.  
  1703.     The  highlighted field has disappeared but the lines that  we 
  1704.     typed are still displayed.
  1705.  
  1706.     We are done for now so lets return to the main menu:
  1707.  
  1708.     PRESS ESC
  1709.  
  1710.     A series of messages will be displayed as ScrEdit creates the 
  1711.     source  code for the screen buffer, and performs  the  "house 
  1712.     work"  in  the screen file. The time taken to do  the  "house 
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.                              Page  27
  1720.  
  1721.     work"  will increase as the number of screens in  the  screen 
  1722.     file  increases.  When  ScrEdit is finished,  the  main  menu 
  1723.     screen is displayed.
  1724.  
  1725. Now that the screen is compiled we can test it.
  1726.  
  1727. - Testing a screen -
  1728.  
  1729. PRESS F10 - The test screen option of the main menu.
  1730.  
  1731.     Your  screen  is displayed, notice that all the  fields  have 
  1732.     been removed, and the cursor is positioned on the name field. 
  1733.     The phone number fields now have zeros in them and the fields 
  1734.     in  the  purchases  history section of the  the  screen  show 
  1735.     ".00".
  1736.  
  1737.     PRESS TAB (a few times)
  1738.     
  1739.     Notice  that  pressing the TAB moves the cursor  through  the 
  1740.     fields  on  the  screen in left to right and  top  to  bottom 
  1741.     order. 
  1742.  
  1743.     PRESS SHIFT and TAB (a few times)
  1744.     
  1745.     Now the cursor moves to the previous field on the screen each 
  1746.     time these keys are pressed. 
  1747.  
  1748.     PRESS ENTER
  1749.  
  1750.     The cursor moves to the name field and a message is displayed 
  1751.     on  the  bottom  line saying that  this  field  is  required. 
  1752.     Remember  the REQUIRED statement that we associated  to  this 
  1753.     field?  Later  we will take an in-depth look at  using  field 
  1754.     validation statements, and how they work.
  1755.  
  1756.     TYPE A ? and PRESS ENTER
  1757.  
  1758.     We  see  that our help message is displayed. You  can  assign 
  1759.     help text to any data entry field on a screen. 
  1760.  
  1761.     PRESS TAB to move to the first address field.
  1762.  
  1763.     TYPE A ? and PRESS ENTER
  1764.  
  1765.     A  message  is displayed that says no help is  available  for 
  1766.     this field. This is the default message that the user of your 
  1767.     program will see if he try's to get help on a field that  has 
  1768.     no help message assigned to it. 
  1769.  
  1770.     Turbo Scredit allow extensive field validation. We will  take 
  1771.     a closer look at these features in PART TWO of this tutor. 
  1772.     
  1773.     Next  notice  that  by default when you enter  a  screen  the 
  1774.     cursor is always positioned on the first data entry field  of 
  1775.     the  screen. Notice also that the cursor  moves to  the  next 
  1776.     field to the right of the current field each time the TAB key 
  1777.     is  pressed. Or if you use SHIFT and TAB the cursor moves  to 
  1778.     the  field to the left of the current field. The  order  that 
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.                              Page  28
  1786.  
  1787.     fields  are accessed by default is top to bottom and left  to 
  1788.     right. In some cases you will want to change this order. Take 
  1789.     this screen for instance. It would be nice to have the cursor 
  1790.     begin on the name field. Next lets look at how Turbo  ScrEdit 
  1791.     allows you to redefine this order.
  1792.     
  1793.     PRESS ESC.
  1794.  
  1795. The main menu is displayed.
  1796.  
  1797. - Changing a screens field order -
  1798.  
  1799. PRESS F6 - The resequence field order option of the main menu.
  1800.  
  1801.     The main menu screen is replaced again by our screen.
  1802.  
  1803.     PRESS SHIFT F1
  1804.  
  1805.     Read this section about changing the field processing  order. 
  1806.     When you are finished PRESS ESC to return to our screen.
  1807.     
  1808.     Your goal here will be to make the cursor  begin on the  name 
  1809.     field  of  our  screen and move through  the  address,  city, 
  1810.     state,  zip  and  phone  section  of  the  screen,  then  the 
  1811.     purchasing information.
  1812.  
  1813.     Hint:  Use the TAB key to place the cursor on the name  field 
  1814.            and:
  1815.            PRESS ENTER
  1816.            PRESS SHIFT TAB
  1817.            PRESS ENTER
  1818.            PRESS SHIFT TAB. 
  1819.            PRESS ENTER 
  1820.  
  1821.     Continue until you have pressed the ENTER key on every  field 
  1822.     of the screen.  Notice as you proceed from field to field and 
  1823.     press the ENTER key that the field indicator on the bottom of 
  1824.     the screen is counting the number of fields defined. When you 
  1825.     are  finished you will automatically be returned to the  main 
  1826.     menu. 
  1827.  
  1828. PRESS F10 - The test screen option of main menu.
  1829.  
  1830.     This  time the prompt should start on the name field  on  the 
  1831.     screen. Pressing the TAB key should cause the cursor to  move 
  1832.     through  the  rest of the address fields and then jump up  to 
  1833.     the YR_1 field.
  1834.  
  1835.     PRESS ESC when you are finished playing.
  1836.  
  1837. - Changing the field color attributes -
  1838.  
  1839. There is one more area with which you can customize the way  your 
  1840. screens are processed. Each field of the screen will always be in 
  1841. one of three possible states: 
  1842. -  a field can be empty (lets call this "normal"), 
  1843. -  a  field  can  be  receiving  key  strokes  (lets  call   this    
  1844.    "prompt"), 
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.                              Page  29
  1852.  
  1853. -   or  a  field  can  be displaying  a  value  (lets  call  this 
  1854.    "display"). 
  1855.  
  1856. Turbo  ScrEdit allows you to define a different  color  attribute 
  1857. for  each  of  these three states. By default  empty  fields  and 
  1858. fields that contain data will be displayed in the color that  was 
  1859. used  when  the  screen was created, and by  default  when  Turbo 
  1860. ScrEdit  is accepting data into a field the background  color  is 
  1861. black (0) and the foreground color is set to bright white (15).
  1862.  
  1863. Thus  we  have  three states for a  field;  normal,  prompt,  and 
  1864. display.  You  can change the color attributes for  "prompt"  and 
  1865. "display".  "Normal" will always be whatever color you used  when 
  1866. you originally designed the screen.
  1867.  
  1868. PRESS F8 - The change field color option of the main menu.
  1869.  
  1870.     The  main menu screen is replaced by the screen that  we  are 
  1871.     editing. You will see one field on the screen that is  filled 
  1872.     with small dots. This is the prompt field for this screen. To 
  1873.     modify a fields colors you must first place the prompt in the 
  1874.     field  to be changed. You can use the Tab and SHIFT TAB  keys 
  1875.     to move from field to field.
  1876.      
  1877.     The  status  line  is displayed on the  bottom  line  of  the 
  1878.     screen. Locate the labels [Normal], [Prompt], and  [Display]. 
  1879.     To the left of each of these labels you will find two  fields 
  1880.     surrounded by greater than and less than symbols and prefixed 
  1881.     by  a  "B"  or "F". These fields  will  display  the  current 
  1882.     "B"ackground  color and "F"oreground colors for  the  current 
  1883.     field in each of it's three possible states.
  1884.  
  1885.     Notice  also the blinking arrow by the [Prompt].  This  arrow 
  1886.     indicates that you will be changing the color definitions for 
  1887.     the  [Prompt]  state. By pressing the keypad  left  or  right 
  1888.     arrow  keys  this  arrow will  toggle  between  [Prompt]  and 
  1889.     [Display].
  1890.  
  1891.     **  NOTE  ** Turbo ScrEdit will not allow you to  define  the 
  1892.     prompt  color  for a field that has been defined  as  DISPLAY 
  1893.     ONLY.
  1894.        
  1895.     PRESS SHIFT and F1.
  1896.     
  1897.     Read  the  help section on changing field  color  attributes. 
  1898.     Lets  change some of the field colors to whatever appeals  to 
  1899.     you. I will step you through the first one.
  1900.  
  1901.     PRESS ESC to return to our screen.
  1902.  
  1903.     Use the keypad arrow keys to position the blinking arrow next 
  1904.     to the [Prompt] part of the status line.
  1905.  
  1906.     PRESS HOME.
  1907.  
  1908.     When  you  pressed  HOME, the current screen  field  and  the 
  1909.     status line [Prompt] label should have changed to reflect the 
  1910.     new color codes.
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.                              Page  30
  1918.  
  1919.  
  1920.     PRESS RIGHT ARROW.
  1921.     
  1922.     The  blinking arrow now has moved to the DISPLAY part of  the 
  1923.     status line.
  1924.  
  1925.     PRESS HOME twice.
  1926.  
  1927.     This  time  the [Display] label on the status  line  and  the 
  1928.     current  field is changing to show the display color.  Select 
  1929.     any  color combination that you wish for this fields  display 
  1930.     state.
  1931.  
  1932.     Move  the cursor to another field and define the  colors  for 
  1933.     that field. Continue for as many fields on the screen as  you 
  1934.     wish to practice on.
  1935.  
  1936.     PRESS ESC to return to the main menu when you are finished.
  1937.  
  1938. Next we can return to the screen test mode and see how the screen 
  1939. uses the colors we defined.
  1940.  
  1941. PRESS F10 - The test screen option of the main menu.
  1942.  
  1943.     Try  typing  values into the screen fields  and  erasing  the 
  1944.     values  from  the fields (Backspace) and see how  the  colors 
  1945.     change.  Remember  you  must type only  numbers  for  numeric 
  1946.     fields.
  1947.  
  1948.     PRESS ESC when you are finished.
  1949.  
  1950. You  should now be looking at the main menu screen  again.  There 
  1951. are  still  three main menu options that we have  not  discussed. 
  1952. Next Lets look at how you can get a hard copy of your screen. 
  1953.  
  1954.  
  1955. - Printing a screen listing -
  1956.  
  1957. ** Skip this section if you do not have a printer **
  1958.  
  1959. PRESS F5 - The screen listing main menu option.
  1960.  
  1961.     On the bottom line of the screen you are offered a chance  to 
  1962.     cancel the print screen option. If you press ESCape the print 
  1963.     operation is aborted.
  1964.  
  1965.     PRESS ENTER
  1966.  
  1967.     The screen listing will be printed on your printer.
  1968.  
  1969.  
  1970. -  Copying text from other screens -
  1971.  
  1972. When  you are developing a system that has several  screens,  you 
  1973. may want to copy all or portions of other screens into the screen 
  1974. that you are editing. Turbo ScrEdit provides a way of doing this. 
  1975.  
  1976. Scroll  the screen "Test_Three" to the edit screen line. This  is 
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.                              Page  31
  1984.  
  1985. the  screen that you experimented with. It should still have  the 
  1986. lines  and  boxes  in it that we placed  there  in  the  previous 
  1987. example on editing screens. This will be the "target" screen that 
  1988. we want to copy text to.
  1989.  
  1990. Next we will define the "source" screen that we want to copy text 
  1991. from.  Locate  the section of the screen labeled  "Copy  Screen". 
  1992. This  section of the screen is used just like the  "Work  Screen" 
  1993. area  is used. Only Here we define the screen files  and  screens 
  1994. that we want to copy text from. 
  1995.  
  1996. PRESS F3 - The define copy screen main menu option.
  1997.      
  1998.     The blinking cursor is now waiting on a blank line inside the 
  1999.     copy  screen  section. At this point you could  type  in  any 
  2000.     screen file name that exists on your system. You can  include 
  2001.     drive  and path information if necessary. For the purpose  of 
  2002.     this  example we are going to use the same file that  we  are 
  2003.     editing:
  2004.  
  2005.     TYPE "TESTSCR" and PRESS ENTER
  2006.  
  2007.     The  copy screen file is opened and the screens in  the  file 
  2008.     are displayed.  You can use the PgUp and PgDn keys to  scroll 
  2009.     the copy screens in the window. The screen name that  appears 
  2010.     in the highlighted line is the screen will be the source that 
  2011.     you will be copying screen text from.    
  2012.  
  2013.     Use the PgUP key to scroll "Test_One" to the top line of  the 
  2014.     screen names window.
  2015.  
  2016.     PRESS F2 - The edit screen main menu option.
  2017.  
  2018.     The  main  menu  disappears  and the  first  screen  that  we 
  2019.     experimented with, "Test_Three" is displayed on the screen.
  2020.  
  2021.     PRESS F6.
  2022.  
  2023.     This  time the screen "Test_One" is displayed on the  screen. 
  2024.     So  we see that when a "Copy Screen" is defined on  the  main 
  2025.     menu,  it becomes the screen that is accessed in  the  screen 
  2026.     editor when we perform text copy or move functions. 
  2027.  
  2028.     Answer the prompt with your choice and copy a portion of  the 
  2029.     text into our edit screen. 
  2030.  
  2031.     PRESS ESC when you are finished.
  2032.  
  2033.     PRESS "Y" to save our work.
  2034.  
  2035. PRESS F3.
  2036. PRESS ENTER.
  2037.  
  2038.     The copy screen line has returned to "Undefined". If you were 
  2039.     to re-enter back into the editor, and access the copy  screen 
  2040.     again,  you would find that the copy screen has  returned  to 
  2041.     the current screen that is being editing.
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.                              Page  32
  2050.  
  2051. - Generating source code -
  2052.  
  2053. Now that you have used all the options that apply to editing  and 
  2054. creating  a screen, lets press on and let Turbo ScrEdit  generate 
  2055. the source code necessary to access and use the screens that  you 
  2056. have developed.
  2057.  
  2058. PRESS "G" - The generate source code main menu option.
  2059.  
  2060.     The  source  code  generation  screen  is  divided  into  two 
  2061.     sections.   The  top  section  is  labeled  "ScrEdit   Source 
  2062.     Generation  Configuration".  The bottom  section  is  labeled 
  2063.     "Source Code Generation Screen  Selection".
  2064.  
  2065.     - Selecting a source code language -
  2066.  
  2067.     First lets look at configuring the source code generator. The 
  2068.     blinking  cursor should be position in the "Language"  field. 
  2069.     Notice that below the prompt there is text that describes the 
  2070.     acceptable values for this field.
  2071.     
  2072.     PRESS PGDN (a few times)
  2073.  
  2074.     Notice that the different language possibilities are scrolled 
  2075.     into  the  language field each time you press PGDN.  You  can 
  2076.     also type in the label that describes your compiler.
  2077.  
  2078.     Set  the  this value for your compiler. You can use  PGDN  to 
  2079.     select  the  label that describes your compiler, or  you  can 
  2080.     type code you select from the list in the field  description. 
  2081.     If  you type in a code the prompt will automatically  advance 
  2082.     to  the next option. If you use PGDN to make  your  selection 
  2083.     your will have to press the TAB key.
  2084.  
  2085.  
  2086.     - Suppressing skeleton file comments -
  2087.  
  2088.     The  skeleton  files that comes with Turbo  ScrEdit  contains 
  2089.     numerous comments that are designed to help you begin merging 
  2090.     your  logic into the code that Turbo ScrEdit generates.  When 
  2091.     you  become  proficient  with using Turbo  ScrEdit  you  will 
  2092.     probably want to suppress the comments. 
  2093.     
  2094.         If  you place a "Y" in this field, most of  the  comments 
  2095.         in  the skeleton will not be included in the source  file 
  2096.         generated. 
  2097.   
  2098.         For now we do not want the comments to be suppressed so:   
  2099.         
  2100.         PRESS "N" 
  2101.  
  2102.     - Options for using screen buffers -
  2103.  
  2104.     Next  we  must  decide if we want the screen  buffers  to  be 
  2105.     copied  into our source code or if we want them  included  at 
  2106.     compile time. Again, the possible answers for this option are 
  2107.     described below the prompt line.
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.                              Page  33
  2116.  
  2117.         If  you  answer  this prompt with a  "Y",  all  the  code 
  2118.         necessary  to  define and initialize the  screen  buffers 
  2119.         will be copied directly into the generated source code.
  2120.  
  2121.         If  you  answer with "N" the source code  generator  will 
  2122.         place {$I} include compiler directives in the source code 
  2123.         and  the screen definitions will be included  at  compile 
  2124.         time.
  2125.  
  2126.         Let's have  the screen definitions copied into  the  file 
  2127.         that we are going to generate.
  2128.  
  2129.         PRESS "Y"
  2130.  
  2131.     - Controlling character case -
  2132.  
  2133.     Next you can specify the character case that the code will be 
  2134.     generated in. 
  2135.  
  2136.         If  you  answer this prompt with a "U"  then  the  entire 
  2137.         source file generated will be in upper case characters.
  2138.  
  2139.         If  you reply with "M" then the source will be  in  mixed 
  2140.         upper  and lower case just as it appears in the  skeleton 
  2141.         file.
  2142.   
  2143.         If  you  are programming in "C" use the  "M"ixed  option. 
  2144.         Upper  case   characters  will not compile  with  an ANSI 
  2145.         standard "C" compiler. 
  2146.  
  2147.  
  2148.     - Specifying the skeleton file locations -
  2149.  
  2150.     Finally  you must tell Turbo ScrEdit where it can locate  the 
  2151.     skeleton   files  that  it  must  use  during   source   code 
  2152.     generation. 
  2153.  
  2154.         Specify the drive and path where you have stored the files
  2155.         "Skeleton.C" or "Skeleton.P".
  2156.  
  2157.     Okay, we have now configured Turbo ScrEdit for your  personal 
  2158.     needs.  Turbo ScrEdit will remember these settings until  you 
  2159.     change them again.   
  2160.  
  2161.     Next we will want to select the screens that will be accessed 
  2162.     in the program Turbo ScrEdit is about to generate. Locate the 
  2163.     "Source  Code  Generation Screen Selection"  section  of  the 
  2164.     screen.
  2165.  
  2166.     Notice that the screens in the screen file are displayed in a 
  2167.     small window. Also notice that the first screen in the window 
  2168.     has  an arrow to its left. When Turbo ScrEdit sees  a  screen 
  2169.     name  that  is flagged with this mark it  will  generate  the 
  2170.     necessary code to access the screen. You may flag one or  all 
  2171.     the screens in a screen file.
  2172.  
  2173.     The  up and down arrow keys are used to move the  highlighted 
  2174.     bar  from one screen name to another. We know that  there  is  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.                              Page  34
  2182.  
  2183.     another  screen  in  this file so let's scroll  it  into  the 
  2184.     window. 
  2185.  
  2186.     PRESS UP ARROW - until all the screen names are in the window.
  2187.     PRESS HOME (a few times)
  2188.  
  2189.     Each time you press the HOME key, a mark appears next to  the 
  2190.     screen name and the highlighted bar moves to the next field.
  2191.  
  2192.     PRESS UP ARROW (until the highlighted bar is on  the  first 
  2193.                     screen name).
  2194.     PRESS END (a few times)
  2195.  
  2196.     Each  time you press the END key the mark next to the  screen 
  2197.     name  disappears  and the highlighted bar moves to  the  next 
  2198.     screen name.
  2199.  
  2200.     Now  use the arrow keys and HOME key to flag  "Test_One"  and 
  2201.     "Test_Three"  for  inclusion in the  source  code  generation 
  2202.     process.
  2203.  
  2204.     PRESS ENTER
  2205.  
  2206.     The  message "GENERATING SOURCE CODE" should be  flashing  on 
  2207.     the  bottom  line  of the screen. When it  is  Turbo  ScrEdit 
  2208.     finished generating the program, you will be returned to  the 
  2209.     main menu.
  2210.  
  2211. PRESS ESC to exit Turbo ScrEdit back to DOS.
  2212.  
  2213. Take time now to load the program generated by Turbo ScrEdit into 
  2214. you  favorite  editor  and examine the  source  file  that  Turbo 
  2215. ScrEdit  generated. Load "TestScr.Pas" or "TestScr.C",  depending 
  2216. on the type of compiler you are using, into you editor. Take time 
  2217. to examine the source code Turbo ScrEdit has generated. When  you 
  2218. are done looking over the code, compile and run the program. 
  2219.  
  2220. Try  keying data into the screen fields, and  pressing  different 
  2221. combinations  of  special control keys. You will see  that  Turbo 
  2222. ScrEdit  lets  you easily detect almost any  combination  of  key 
  2223. strokes. 
  2224.  
  2225. Well, that concludes the basic look at Turbo ScrEdit. You  should 
  2226. now  be able to produce any screens that you need, and  generates 
  2227. the basic skeleton program ready to receive you custom logic.  In 
  2228. the next part of this tutor we will look at the field  validation 
  2229. language that is supported by Turbo ScrEdit. 
  2230.  
  2231.  
  2232.  
  2233. PART TWO 
  2234.  
  2235. In PART ONE you learned  how to create a screen file, create  and 
  2236. edit  screens,   compile  a screen,  change the  order  that  the 
  2237. screen  fields  are processed,  change the  display,  and  prompt 
  2238. colors, test a screen, and finally, how to tell scredit to create 
  2239. the source code needed to use the screen file.
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.                              Page  35
  2248.  
  2249. In  PART  TWO we are going to take a closer look at some  of  the 
  2250. ways that you can use ScrEdit's field processing language to edit 
  2251. the  values  that are allowed to be keyed into the  fields  on  a 
  2252. screen.
  2253.  
  2254. We  will use the files "SCRDEMO.SCR" and "SCRDEMO.P" if  you  are 
  2255. using  pascal,  or "SCRDEMO.C" if you are using a  "C"  compiler. 
  2256. These files came with Turbo ScrEdit for the examples that follow. 
  2257. Copy  these  two  files to a separate work area,  or  to  a  work 
  2258. diskette.
  2259.  
  2260. Lets begin by looking at "SCRDEMO.SCR", the demonstration  screen 
  2261. file  that came with Turbo ScrEdit. By now you should be able  to 
  2262. run Turbo ScrEdit and load this screen file on your own. 
  2263.  
  2264. We find that there are two screens in this file, "Demo_Menu"  and 
  2265. "Demo_Screen".
  2266.  
  2267. First lets look at the screen "Demo Menu". Scroll "Demo_Menu"  to 
  2268. the  top line of the screens window and press F2 to look  at  the 
  2269. screen.  This screen has no fields defined on it. It is  just  an 
  2270. introduction to the demonstration program. Screens with no fields 
  2271. on them can be used for pop up help screens or for menu screens.
  2272.  
  2273. PRESS ESC
  2274. PRESS "N" 
  2275.  
  2276. Even  screens that don't have any fields must be compiled  before 
  2277. they can be accessed in your program.
  2278.  
  2279. PRESS F4
  2280.     
  2281.     When  Turbo ScrEdit compiles a screen with no fields  on  it, 
  2282.     it  sets  a flag in the file index that tells  Turbo  ScrEdit 
  2283.     not  to  generate a buffer for the screen, and never  try  to 
  2284.     read  or write any data to or from this screen. A  screen  of 
  2285.     this type will not take up any memory in your program. It  is 
  2286.     read  into the file buffer when needed then overlaid  by  the 
  2287.     next screen displayed.
  2288.  
  2289.     Because it has no fields, and consequently requires no buffer 
  2290.     to  be  generated, the value of  the  compiler  configuration 
  2291.     option will have no effect on this screen.  
  2292.  
  2293.     PRESS "Y" to accept the values.
  2294.  
  2295.     The compile process begins and because there is no fields  on 
  2296.     the  screen to define you are returned directly to  the  main 
  2297.     menu.
  2298.  
  2299. Now move "Demo_Screen" to the highlighted screen name line.
  2300.  
  2301. PRESS F2 to look at "Demo_Screen".
  2302.  
  2303.      When  you are finished looking at the screen return  to  the 
  2304.      main menu.
  2305.  
  2306.      PRESS ESC
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.                              Page  36
  2314.  
  2315.      PRESS "N"
  2316.  
  2317. The  next  thing that we will do is  compile  "Demo_Screen".  The 
  2318. purpose  of  this demonstration is to give  you  some  experience 
  2319. using field processing specifications. Each of the fields on this 
  2320. screen  have  previously  been defined  and  assigned  processing 
  2321. specifications.  Basically  I just want you to look  at  how  the 
  2322. specifications  are defined and allow me to describe their  usage 
  2323. and purpose to you.
  2324.  
  2325. PRESS F4 key to compile the screen. 
  2326.  
  2327.     For  the  purpose of this demonstration you must  select  the 
  2328.     language for your compiler.  There will not be new fields  on 
  2329.     this screen so the rest of the prompts not have an effect  on 
  2330.     this  screen.  You  may accept the values  as  they  are  now
  2331.     displayed.
  2332.  
  2333.     When  the compile is finished, the first field found  on  the 
  2334.     screen  will  be  displayed with a  row  of  carats  (^^^^^^) 
  2335.     underlining  it.  In  this case the field name  is  "OP"  for 
  2336.     option.
  2337.  
  2338.     The blinking cursor is sitting on the field labeled "Type".
  2339.  
  2340.     Through out this discussion I will ask you to use the on-line 
  2341.     help  system  to  lookup  and read  the  details  on  certain 
  2342.     statements.
  2343.  
  2344.     We see the current field "OP" has a type of "0" meaning  that 
  2345.     "OP"  is an integer field so Turbo ScrEdit will  only  accept 
  2346.     numeric keystrokes to be keyed into this field.
  2347.  
  2348.     In  the  bottom section of the screen we see  five  lines  of 
  2349.     text:
  2350.  
  2351.     ----------
  2352.     HELP 'Each field on the screen can have a help message accessed by 
  2353.           a ? mark'
  2354.     REM
  2355.     REM statements. These comments are ignored by Turbo ScrEdit.
  2356.     REM
  2357.     IN '1^4'\' You must select one of the options 1 through 4 '
  2358.     ----------
  2359.  
  2360.     These are field processing statements. Turbo ScrEdit supports 
  2361.     a  variety  of processing statements that will allow  you  to 
  2362.     test each field for specific values or ranges of values.
  2363.  
  2364.     ScrEdit  allows  up  to 50 lines of these  statements  to  be 
  2365.     assigned  to each field on the screen. It is not  recommended 
  2366.     that  you  assign  every  field on the  screen  50  lines  of 
  2367.     processing   statements.  These  processing  statements   are 
  2368.     interpreted  by  Turbo ScrEdit, which means you can  over  do 
  2369.     using them and make your screen sluggish. By the same token I 
  2370.     believe  you  will surprised by how may  statements  you  can 
  2371.     assign  to a screen with no noticeable effect of speed.  When 
  2372.     you  use  processing statements you will want  to  experiment 
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.                              Page  37
  2380.  
  2381.     with them and be as precise as possible.
  2382.  
  2383.     PRESS F2 to start editing the processing specs.
  2384.    
  2385.         The  control  key labels have changed  to  represent  new 
  2386.         functions.  The  first line of text is  now  highlighted, 
  2387.         with  a blinking cursor to the right of the text  on  the 
  2388.         line.  This is the processing statement editor. In  this 
  2389.         mode we can add, delete, or edit processing statements.
  2390.  
  2391.         Lets look at each of the control keys for this screen. 
  2392.  
  2393.         F1 - will  call up a help system menu. This is  a  little 
  2394.              different  approach than used in most of  the  other 
  2395.              screens  of  Turbo ScrEdit. From this menu  you  can 
  2396.              access  the  information on how to  define  and  use 
  2397.              processing specifications.
  2398.          
  2399.         F2 - deletes the line at the cursor.
  2400.  
  2401.         F3 - inserts a blank line at the cursor.
  2402.  
  2403.         F5 - places  the cursor on the first line  of  processing 
  2404.              specifications for the field.
  2405.     
  2406.         F6 - places the cursor on the last line of the processing 
  2407.              specifications for the field.
  2408.  
  2409.         F7 - advances the cursor to the next line of text.
  2410.   
  2411.         F8 - Moves the cursor up one line of text.
  2412.           
  2413.         ESC - ends the processing specs editor and returns you to 
  2414.              field definition mode.
  2415.  
  2416.         ENTER - moves the cursor to the next line of text.
  2417.        
  2418.         Notice  on the bottom line of the screen some  additional 
  2419.         keys are described.
  2420.  
  2421.         DEL - (key  pad  "."  or delete key) is  used  to  delete 
  2422.               characters at the cursor.
  2423.    
  2424.         INS - (key  pad  "0"  or insert key) is  used  to  toggle 
  2425.               insert mode on and off. When insert mode is on, any 
  2426.               characters typed will be inserted into the line.
  2427.  
  2428.         LEFT ARROW - (key pad "4") is used to move the cursor  to 
  2429.               the left in the line of text.
  2430.  
  2431.         RIGHT ARROW - (key pad "6") is used to move the cursor to 
  2432.               the right in the line of text.
  2433.  
  2434.         The first statement used here is the HELP statement.  You 
  2435.         probably  remember how the HELP statement works from  our 
  2436.         discussion in PART ONE. Let's look up the HELP  statement 
  2437.         in the on-line help system and read up on it.
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.                              Page  38
  2446.  
  2447.         PRESS F1
  2448.         PRESS F8
  2449.  
  2450.         Read the manual's description on the HELP statement. 
  2451.  
  2452.         PRESS ESC to return to the help menu.
  2453.         PRESS ESC to return to the compile screen.
  2454.  
  2455.         - Using the HELP statements -
  2456.  
  2457.         Help  statements  are optional. If a  HELP  statement  is 
  2458.         assigned to a field it must be the first field processing 
  2459.         statement.  The HELP statement consists of the word  HELP 
  2460.         followed by a message enclosed in single quotes.
  2461.             
  2462.         Any time a ? mark is typed in the field and the ENTER key 
  2463.         is pressed, Turbo ScrEdit checks for a HELP statement. If 
  2464.         a HELP statement is found the help message is  displayed. 
  2465.         If  no  help statement is assigned to  the  field,  Turbo 
  2466.         ScrEdit  displays the message "No help defined  for  this 
  2467.         field".
  2468.  
  2469.         PRESS F3 (two times)
  2470.  
  2471.         Two  blank  lines  have been insert  ahead  of  the  HELP 
  2472.         statement.        
  2473.     
  2474.         PRESS F2 (two times)
  2475.         
  2476.         The two blank lines have been deleted.
  2477.  
  2478.         Use the right arrow key to place the cursor between  HELP 
  2479.         and the message that follows it.
  2480.  
  2481.         PRESS INS  (key pad 0) until the [INSERT] label  on  the 
  2482.                     bottom of the screen is highlighted.
  2483.  
  2484.         TYPE in a couple of characters.
  2485.  
  2486.         Notice  that the characters you typed have been  inserted 
  2487.         into  the  line of text. In insert  mode  characters  are 
  2488.         truncated as they are pushed off the end of the line. 
  2489.  
  2490.         Use the left arrow key to position the cursor back on the 
  2491.         first character that you typed. 
  2492.  
  2493.         PRESS DEL  (key pad ".") and delete the  characters  from 
  2494.                    the line.
  2495.  
  2496.         Use the right arrow to move the cursor to the end of  the 
  2497.         line  and  make  sure that the line ends with   "by  a  ? 
  2498.         mark'".
  2499.  
  2500.         PRESS F6
  2501.  
  2502.         The  last  line of processing specs is now  on  the  edit 
  2503.         line.
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.                              Page  39
  2512.  
  2513.         PRESS F5
  2514.  
  2515.         The  first  line of processing specs is now on  the  edit 
  2516.         line.
  2517.  
  2518.         PRESS F8
  2519.  
  2520.         The  text is moved up one line so the first REM  line  is 
  2521.         now  on the edit line. Look up the REM statement  in  the 
  2522.         on-line help system. (PRESS F1 followed by SHIFT F7).
  2523.  
  2524.         - Using the REM statements -
  2525.  
  2526.         You see that you may add remarks to your field processing 
  2527.         statements. Remarks are ignored by Turbo ScrEdit and will 
  2528.         only  be  displayed  on this screen  and  in  the  screen 
  2529.         listing (the main menu F5 option).
  2530.  
  2531.         PRESS F8 (three times)
  2532.  
  2533.         Now a line that starts with "IN" is in the edit line. Use 
  2534.         the on line help system to look up "IN" statements.
  2535.  
  2536.         - Using the IN statements -
  2537.  
  2538.         We see that IN statements are used to test the value of a 
  2539.         field against a list of values. In this case we are going 
  2540.         to compare the value of OP against a range of values from 
  2541.         1 to 4. This same expression could have been written as:
  2542.     
  2543.         IN '1'2'3'4'\ message
  2544.  
  2545.         This  would work just the same as using the  range  value 
  2546.         '1^4'. 
  2547.   
  2548.         The '\' means "NOT EQUAL TO". So if the value keyed  does 
  2549.         not fall within the range's of 1 to 4 Turbo ScrEdit  will 
  2550.         consider the field contents invalid, and the message will 
  2551.         be issued to the user.
  2552.  
  2553.         If  you  were to replace the '\' with a '=' then  if  the 
  2554.         value  of OP is found to be in the range of 1 to 4  Turbo 
  2555.         ScrEdit  will consider the value invalid and the  message 
  2556.         will be issued to the user of the program.
  2557.       
  2558.         In plain english these expressions are saying:
  2559.             If  the user types a question mark in this field  and 
  2560.             presses the enter key, display the  help message,  or 
  2561.             if  the  user types any value in this  field  besides 
  2562.             1,2,3,4 or ? reject it and issue the error message.
  2563.  
  2564.         PRESS ESC to exit the edit process mode 
  2565.  
  2566.     PRESS F8 to advance to the next field on the screen.
  2567.  
  2568.     PRESS F2 to Look at the next fields processing specifications. 
  2569.          
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.                              Page  40    
  2578.  
  2579.         The  first  statement that we see defined here is  an  UP 
  2580.         SHIFT ON statement.
  2581.  
  2582.         - Using the UP SHIFT statement -
  2583.  
  2584.         Using  the  UP  SHIFT statement will  control  how  Turbo 
  2585.         ScrEdit  performs alphabetical comparisons. The UP  SHIFT 
  2586.         statement  is followed by either ON or OFF and will  have 
  2587.         following affect:
  2588.  
  2589.             UP SHIFT ON  - All   alphabetical  comparisons   that 
  2590.                            occur after this statement and  before 
  2591.                            the next UP SHIFT OFF statement   will 
  2592.                            be   performed  with  no   regard   to 
  2593.                            character case.
  2594.  
  2595.             UP SHIFT OFF - All   alphabetical   comparisons  that 
  2596.                            follow  this  statement will  be  made 
  2597.                            according  to the character case  that 
  2598.                            they are entered in.
  2599.  
  2600.         Turbo  ScrEdit will reset itself to UP SHIFT OFF  between 
  2601.         fields.  When  Turbo ScrEdit begins evaluating  a  fields 
  2602.         processing specifications, UP SHIFT OFF is assumed,  even 
  2603.         if you had used an UP SHIFT ON for the previous field. 
  2604.         PRESS F8 to advance to the next processing line.
  2605.             
  2606.         The  next statement we find is an IF statement.  We  must 
  2607.         discuss  the  IF,  THEN,  and  ENDIF  statements  as  one 
  2608.         statement.  Before we dive into the discussion take  time 
  2609.         to  look up the IF statement in the on-line help  system, 
  2610.         and read the explanation carefully.
  2611.           
  2612.  
  2613.         - Using the IF/NOT/THEN/SKIP/ENDIF statements -
  2614.        
  2615.         The IF statement allows you to check the status of  other 
  2616.         fields  on  the screen for  specified  conditions  before 
  2617.         testing  the  current fields values.  If  the  conditions 
  2618.         specified  between  the IF and the THEN are  analyzed  as 
  2619.         true  then the statements between the THEN and the  ENDIF 
  2620.         if are performed. If the expression is analyzed as  false 
  2621.         then  everything is ignored up to and through  the  ENDIF 
  2622.         statement.
  2623.              
  2624.         In this example we are testing the value of OP by  saying 
  2625.         that if the value of OP is NOT equal to '1' THEN we  want 
  2626.         to  perform the expressions of the IF statement. In  this 
  2627.         case the word SKIP is the expression to be performed.
  2628.  
  2629.         If  the  value of OP is equal to '1' then  Turbo  ScrEdit 
  2630.         will  read ahead to the next statement that  follows  the 
  2631.         ENDIF. 
  2632.  
  2633.         - SKIP statement -
  2634.  
  2635.         The  SKIP statement means SKIP this field and advance  to 
  2636.         the next.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.                              Page  41
  2644.  
  2645.  
  2646.         PRESS F8 (until you reach the IN statement)
  2647.  
  2648.         Next  we find another IN statement. Notice that the  list 
  2649.         of  values  for this statement was too long to fit  on  a 
  2650.         single  line. You can have values span as many  lines  as 
  2651.         needed as long as the last value ends with a single quote 
  2652.         and the one on the next line begins with a single quote.
  2653.  
  2654.         The  message  part of this IN statement is on a  line  by 
  2655.         itself. The only rule that you must concern yourself with 
  2656.         here is that the message line must begin with the '\' and 
  2657.         end with the message enclosed in single quotes. 
  2658.  
  2659.         In plain english these expression are saying:
  2660.             If the user has not entered a 1 in the field OP  then 
  2661.             skip this field and go to the next.
  2662.  
  2663.             If  the user has entered a 1 in the field OP then  if 
  2664.             the  value  in this field is not one  of  the  values 
  2665.             listed  then  reject the value and  issue  the  error 
  2666.             message.
  2667.  
  2668.         PRESS ESC to return to field definition mode.
  2669.                                
  2670.     The   next  three  fields  on  the  screen  have   processing 
  2671.     specifications that are almost identical to the ones that  we 
  2672.     just  discussed,  so lets skip over them. 
  2673.  
  2674.     PRESS F8 (three times)
  2675.  
  2676.     When we reach the field named "A", we see a SKIP IF BLANK 
  2677.     statement.
  2678.      
  2679.     - Using a SKIP IF BLANK statement -
  2680.  
  2681.     This statement tells Turbo ScrEdit that if the current  field 
  2682.     is empty it is to skip over the field. 
  2683.  
  2684.     You  should recognize the remaining statements, they are  the 
  2685.     same as those described above.
  2686.  
  2687.     PRESS F8 (three times)
  2688.           
  2689.     When  you  reach  the field named "D" stop  and  examine  the 
  2690.     processing  statements of this field. We see that a new  type 
  2691.     of  IF statement is coded here using the AND and  OR  logical 
  2692.     operators.
  2693.   
  2694.     PRESS F2.
  2695.  
  2696.         The  first IF statement is a simple one similar to  those 
  2697.         that we  have looked at before. 
  2698.  
  2699.         PRESS F8 to scroll ahead.
  2700.  
  2701.         After the If statement we see a UP SHIFT ON statement.
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.                              Page  42
  2710.  
  2711.         The  next IF statement has some new additions to it,  the 
  2712.         AND  and OR logical operators. 
  2713.  
  2714.         - Using AND and OR operators -
  2715.  
  2716.         When  expressions  are tied together  by  AND  operators, 
  2717.         Turbo  ScrEdit  will continue evaluating  expressions  as 
  2718.         long   as  the  result  remains  true.  If  one  of   the 
  2719.         expressions  evaluates to false then Turbo  ScrEdit  will 
  2720.         read  ahead without evaluating any of the expressions  it 
  2721.         encounters until an OR or THEN statement is encountered
  2722.  
  2723.         When an OR operator is encountered Turbo ScrEdit  recalls 
  2724.         if the last expression evaluated was true or false. 
  2725.         -  If  the  result  was  true  then  the  entire  IF   is 
  2726.            considered  as true and Turbo ScrEdit will advance  to 
  2727.            the  THEN part of the IF statement and  will  evaluate 
  2728.            the expressions that make up the action part of the IF 
  2729.            statement.
  2730.         -  If  the result was false then evaluation  begins  with 
  2731.            the next expression after the OR. 
  2732.              
  2733.         In  this  particular example the action part  of  the  if 
  2734.         statement is the "ERROR" statement. 
  2735.  
  2736.         - Using the ERROR statement -
  2737.  
  2738.         The  ERROR statement can only be used in the action  part 
  2739.         of  an  IF  statement. When it is  encountered  an  error 
  2740.         condition is assumed. Turbo ScrEdit will place the cursor 
  2741.         on the current field, issue the error message and  return 
  2742.         for a new value in the current field.
  2743.  
  2744.         You should be able to understand the remaining statements 
  2745.         for this field.
  2746.  
  2747.         In plain english these statements are saying:
  2748.             If the field OP has any value other than 2 then  skip 
  2749.             the remaining statements for this field and go to the 
  2750.             next field.
  2751.  
  2752.             Otherwise  make  the following  comparisons  with  no 
  2753.             regard to character case.
  2754.  
  2755.             If  any two of the fields A, B, or C are  blank  then 
  2756.             issue  the error message and reject the  contents  of 
  2757.             the screen. 
  2758.  
  2759.             If  the screen is valid to this point then  test  the 
  2760.             fields  A, B, and C to see if they all have a  value. 
  2761.             If  none of them are empty then if the current  field 
  2762.             also  is not empty issue the message and  reject  the 
  2763.             screen.
  2764.                    
  2765.             If  the  screen is valid to this point  then  if  the 
  2766.             field "A" is blank, or if "B" is blank, or if "C"  is 
  2767.             blank then the contents of the current field must  be 
  2768.             a "D" or the error message is issued and the  content 
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.                              Page  43
  2776.  
  2777.  
  2778.             of the screen is rejected.
  2779.  
  2780.         PRESS ESC to return to field definition mode.
  2781.  
  2782.     USE F8 again to scroll through the fields until you reach the 
  2783.     field called "Date_Field". Take time as you move through  the 
  2784.     fields to examine the processing statements for each of them.     
  2785.  
  2786.     When you reach "Date_Field":
  2787.  
  2788.     PRESS F2 to examine the processing statements.
  2789.  
  2790.     Here  we  find  some familiar IF statements but  a  new  DATE 
  2791.     statement.
  2792.  
  2793.  
  2794.     - Using the DATE statement - 
  2795.     The DATE statement must be followed with at least one of  the 
  2796.     patterns MM, DD, YY, or YYYY. These patterns can be  arranged 
  2797.     any  way  you  desire, and separated by  any  characters  you 
  2798.     specify.
  2799.  
  2800.     When  Turbo ScrEdit evaluates a date statement it checks  for 
  2801.     valid  values for month (1-12) and valid values for day.  The 
  2802.     valid value of day can vary for different months and  whether 
  2803.     or not it is a leap year. 
  2804.             
  2805.     The date keyed into the field must match the pattern that you 
  2806.     use exactly or it is rejected.
  2807.  
  2808.     Turbo  ScrEdit will issue a variety of messages depending  on 
  2809.     the condition that it finds in the date keyed.
  2810.  
  2811.     PRESS ESC to return to the field definition mode.
  2812.  
  2813. PRESS ESC. to return to the main menu.
  2814.  
  2815. As  you  return  to the main menu Turbo ScrEdit  will  display  a 
  2816. series of messages on the bottom of the screen. Turbo ScrEdit  is 
  2817. creating  the  screen  buffer to be  used  in  the  demonstration 
  2818. program.
  2819.  
  2820.  
  2821. - Changing the sequence of the screen fields -
  2822.  
  2823. Use the main menu F6 option to reorder the way that Turbo ScrEdit 
  2824. will process the fields on "Demo_Screen".  Notice that each  area 
  2825. of  the  screen  has  a  number  in  the  top  left  corner  that 
  2826. corresponds to the list of options. 
  2827.  
  2828. The TAB and ENTER keys are used when redefining the screen fields 
  2829. sequence:
  2830.     The TAB key is and SHIFT TAB keys are used to move the cursor 
  2831.     from  field   to field.  
  2832.     The ENTER key selects the current field as next field on  the 
  2833.     screen.
  2834.     The ESC key ends the process and returns to the main menu. 
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.                              Page  44
  2842.  
  2843.  
  2844. Use the TAB key to move the cursor through all the fields of  the 
  2845. screen.  Notice when the cursor passes through the fields in  BOX 
  2846. 2, that between the fields "D" and "ABCD" the cursor jumps to the 
  2847. field  in  BOX  4. Your task here will be to  reorder  the  field 
  2848. sequence so "OP" is first, followed by the fields in BOX 1,  then 
  2849. all  the  fields  in  BOX 2, followed by the  fields  in  BOX  3, 
  2850. followed by the fields in BOX 4.
  2851.  
  2852. When  you have finished press ESC to return to the main menu  and 
  2853. use the F10 option to test the screen.
  2854.  
  2855. PRESS ESC again to exit back to DOS.
  2856.  
  2857. Load the file "ScrDemo.P or ScrDemo.C" into your language  editor 
  2858. and examine the code. If you are using Turbo Pascal you will want 
  2859. to make the changes for your version outlined at the first of the 
  2860. "ScrDemo.P". You may then compile the program and play with it to 
  2861. see  how the processing specifications affect running  and  using 
  2862. the program.
  2863.  
  2864. Well,  that  completes the introduction to ScrEdit.  I  hope  you 
  2865. enjoy  using this program.  I would like to know what  you  think 
  2866. about this tutor. Was it thorough, easy to use and follow, or was 
  2867. it  difficult  to  follow or understand?   Please  send  me  some 
  2868. feedback, let me know how you think it could be improved.
  2869.  
  2870. Send your comments to.
  2871.     iHn Systems         
  2872.     P.O. Box 4436     
  2873.     Pocatello, Id. 83205-4436
  2874.  
  2875.