home *** CD-ROM | disk | FTP | other *** search
- Minor Upgrade to EDITOR.TPU
- Version 2.2
-
-
- Brian Spykerman (Utah State University) pointed out a bug in the EditInt()
- function I had overlooked. If you delete ALL the numeric characters
- during EditInt() entry and press <Enter>, you can "hang" the entire system.
- This bug is embarassing because I should have caught it LONG ago. It is
- now fixed. In addition, a similar bug in the EditReal() procedure has
- also been fixed.
-
- * * * * *
-
- Several people have requested a "bail-out" function during data entry.
- This data entry "escape" function now allows data entry operators to quit
- entry at ANY point in the data entry process. Pressing the Esc key can be
- used to bypass record insertion if the operator inadvertantly starts data
- entry or simply wishes to quit data entry without saving the record. This
- function adds the global variable "Escape" as a Boolean operator.
-
- For example:
-
- Repeat
- Case FieldNo of
- 1 : EditString(Example,15,5,5,Black,White,' ');
- .
- .
- .
- .
- End; { Case }
- Until FieldNo > LastField;
- (* If the operator hasn't pressed the <Esc> key *)
- If not Escape then
- Begin
- { Data, record and/or file handling procedure(s) }
- .
- .
- .
- End;
-
-
- This method can also be employed to avoid the ubiquitous "Enter another
- record (Y/N)?" query at the bottom of the entry screen, thus saving one
- keystroke per entry record. (See EDITOR.DOC)
-
- NOTE: A little care must be taken in your programming to avoid the
- possibility of unintentionally losing the last record entered. One
- method might be to query the operator if the current entry should
- be saved or discarded: "Save current record (Y/N)?"
-
- * * * * *
-
- Many thanks to those who have taken the time to write or call suggesting
- improvements to TPEdit. I am STILL surprised at the popularity of this
- small TPU! If you have questions, problems or suggestions, contact:
-
- COMPUsystems N.W.
- Attn: John Winney
- 9792 Edmonds Way, Suite 226
- Edmonds, WA 98020
- (206) 774-1460 (no collect calls, please!)
- C/O George Wishart Compuserve [ 70165,460 ]
-