home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20414 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!rutgers!cmcl2!rlgsc.com!gezelter
  2. From: gezelter@rlgsc.com
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Help needed on Uppercase in a batchfile
  5. Message-ID: <1993Jan5.093943.306@rlgsc.com>
  6. Date: 5 Jan 93 14:39:43 GMT
  7. References: <1993Jan4.204413.2561@merrimack.edu>
  8. Organization: Robert Gezelter Software Consultant, Flushing, NY
  9. Lines: 36
  10.  
  11. In article <1993Jan4.204413.2561@merrimack.edu>, finocchiaroj@merrimack.edu writes:
  12. > I have a question on whether there is a Uppercase function that you can use for
  13. > a batchfile, or is there an escape sequence to turn on Capslock. For example
  14. > say this is a batchfile:
  15. >     
  16. >     $ inquire/nopuct "enter your name: "
  17. >     
  18. > And you want the user to type in his name like this JASON and not like jason
  19. > I would appreciate any info on this.
  20. > Thanks,
  21. >     Finocchiaroj@merrimack
  22. -- 
  23. There are two ways to do this. The first, which affects the 
  24. terminal, is to set the terminal to NOLOWER using the command:
  25.  
  26.           $ SET TERMINAL/NOLOWER
  27.  
  28. This will have the effect of forcing all input AND output to 
  29. upper case.
  30.  
  31. A more preferred approach (IMHO) is to use the lexical function 
  32. F$EDIT with the "UPCASE" parameter to force everything in the 
  33. string read in to UPPER case.
  34.  
  35. I hope that this information is helpful.
  36.  
  37. - Bob
  38. +--------------------------------------------------------------------------+
  39. | Robert "Bob" Gezelter                       E-Mail:  gezelter@rlgsc.com  |
  40. | Robert Gezelter Software Consultant         Voice:   +1 718 463 1079     |
  41. | 35-20 167th Street, Suite 215               Fax:       (on Request)      |
  42. | Flushing, New York  11358-1731                                           |
  43. | United States of America                                                 |
  44. +--------------------------------------------------------------------------+
  45.