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

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!caen!destroyer!cs.ubc.ca!unixg.ubc.ca!reg.triumf.ca!music
  2. From: music@reg.triumf.ca (FRED W. BACH)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Help needed on Uppercase in a batchfile
  5. Date: 6 Jan 1993 17:36 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Lines: 58
  8. Distribution: world
  9. Message-ID: <6JAN199317363285@reg.triumf.ca>
  10. References: <1993Jan4.204413.2561@merrimack.edu> <1993Jan5.093943.306@rlgsc.com>
  11. NNTP-Posting-Host: reg.triumf.ca
  12. News-Software: VAX/VMS VNEWS 1.41    
  13.  
  14. In article <1993Jan5.093943.306@rlgsc.com>, gezelter@rlgsc.com writes...
  15. #In article <1993Jan4.204413.2561@merrimack.edu>, finocchiaroj@merrimack.edu writes:
  16. #> I have a question on whether there is a Uppercase function that you can use for
  17. #> a batchfile, or is there an escape sequence to turn on Capslock. For example
  18. #> say this is a batchfile:
  19. #>     
  20. #>     $ inquire/nopuct "enter your name: "
  21. #>     
  22. #> And you want the user to type in his name like this JASON and not like jason
  23. #> I would appreciate any info on this.
  24. #> 
  25. #> Thanks,
  26. #> 
  27. #>     Finocchiaroj@merrimack
  28. #-- 
  29. #There are two ways to do this. The first, which affects the 
  30. #terminal, is to set the terminal to NOLOWER using the command:
  31. #          $ SET TERMINAL/NOLOWER
  32. #This will have the effect of forcing all input AND output to 
  33. #upper case.
  34. #A more preferred approach (IMHO) is to use the lexical function 
  35. #F$EDIT with the "UPCASE" parameter to force everything in the 
  36. #string read in to UPPER case.
  37. #I hope that this information is helpful.
  38. #- Bob
  39. #+--------------------------------------------------------------------------+
  40. #| Robert "Bob" Gezelter                       E-Mail:  gezelter@rlgsc.com  |
  41. #| Robert Gezelter Software Consultant         Voice:   +1 718 463 1079     |
  42. #| 35-20 167th Street, Suite 215               Fax:       (on Request)      |
  43. #| Flushing, New York  11358-1731                                           |
  44. #| United States of America                                                 |
  45. #+--------------------------------------------------------------------------+
  46.  
  47.   Bob, 
  48.  
  49.     We had this problem a while back.  The idea then was also to *echo* the
  50.  answer in uppercase only no matter what case was typed in.  I found that
  51.  what I wrote here (a one-line statement as you suggest Set Term/nolower)
  52.  worked for doing what I just said, but did NOT work at another site.  It
  53.  seemed to depend on the terminal hookup and if an emulator was being used. 
  54.  Probably something to do with local echo.  I did not investigate the problem
  55.  further since I was not the one having the problem any more.  The F$EDIT
  56.  forces the string to be read into the symbol in uppercase, but the screen
  57.  echo may still be in lower or mixed case.
  58.  
  59.  
  60.  Fred W. Bach ,    Operations Group        |  Internet: music@erich.triumf.ca
  61.  TRIUMF (TRI-University Meson Facility)    |  Voice:  604-222-1047 loc 278/419
  62.  4004 WESBROOK MALL, UBC CAMPUS            |  FAX:    604-222-1074
  63.  University of British Columbia, Vancouver, B.C., CANADA   V6T 2A3
  64.  
  65.  These are my opinions, which should ONLY make you read, think, and question.
  66.  They do NOT necessarily reflect the views of my employer or fellow workers.
  67.