home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / new / util / edit / polyed / rexx / text.rexx < prev    next >
OS/2 REXX Batch file  |  1994-09-22  |  798b  |  34 lines

  1. /*
  2. ** $VER: text.rexx 1.0 (30.8.94) written by Robert Brandner
  3. **
  4. ** Demo of the usage of the TEXT command
  5. */
  6.  
  7. /* enable return codes */
  8.  
  9. OPTIONS RESULTS
  10.  
  11. /* is PolyEd out there ? */
  12.  
  13. if ~SHOW("Ports", "POLYED.1") then do
  14.     say "Please start PolyEd before running this program."
  15.     exit
  16. end
  17.  
  18. ADDRESS POLYED.1.1
  19.  
  20. TEXT "Hi there!"                  
  21. TEXT NEWLINE
  22. TEXT "The parsing of the arguments has a problem with spaces at"
  23. TEXT NEWLINE "the beginning or the end of the text."
  24. TEXT NEWLINE
  25. TEXT NEWLINE " ""TEXT '  Hi there!  '"" yields the same as ""TEXT 'Hi there!'"""
  26. TEXT NEWLINE
  27. TEXT '  Hi there!  '
  28. TEXT NEWLINE
  29. TEXT 'Hi there!'
  30. TEXT NEWLINE "But it works if you use the keyword explicitely: ""TEXT TEXT '  Hi there!  '"""
  31. TEXT NEWLINE
  32. TEXT TEXT '  Hi there!  '
  33. TEXT ... but not at the end :-(
  34.