home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Programming / CanDo / Decks3 / EndOfFile / EndOfFileReadMe < prev   
Encoding:
Text File  |  1990-01-23  |  1.2 KB  |  23 lines

  1. Hello,
  2.  
  3.   Here is a sample CanDo Deck to demonstrate the use of the command IfError
  4. to detect an End-of-File.
  5.   To help you understand how it works, I'll explain its basic function.
  6. When you run the deck, you must press a Button to continue.  A file
  7. requester will appear asking for the name of the a text file to view.  The
  8. Script checks if the file exists, and that it is of unknown type, which
  9. I assume is an ASCII text file.  If the file exists, it is opened and
  10. the script goes to the card named OpenIt.  OpenIt contains a Document Object
  11. which is used to display each line of the selected file.  OpenIt uses a
  12. reoccurring Timer Object which contains a script to read in a line of text
  13. from the file and checks for the end of the file.  If it is not an end of
  14. file, the line is typed into the Document being displayed.  Each time the
  15. Timer occurs, this script repeats.
  16.   This example is an unbound Deck.  If you own CanDo, use DeckRunner to
  17. run the Deck.  If you do not own CanDo, use DeckBrowser.
  18.   The scripts in this Deck are commented, so feel free to study them from
  19. within CanDo.
  20.  
  21.                                Jim Nelson
  22.                                Tech. Support, INOVAtronics.    
  23.