home *** CD-ROM | disk | FTP | other *** search
- 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
- From: music@reg.triumf.ca (FRED W. BACH)
- Newsgroups: comp.os.vms
- Subject: Re: Help needed on Uppercase in a batchfile
- Date: 6 Jan 1993 17:36 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Lines: 58
- Distribution: world
- Message-ID: <6JAN199317363285@reg.triumf.ca>
- References: <1993Jan4.204413.2561@merrimack.edu> <1993Jan5.093943.306@rlgsc.com>
- NNTP-Posting-Host: reg.triumf.ca
- News-Software: VAX/VMS VNEWS 1.41
-
- In article <1993Jan5.093943.306@rlgsc.com>, gezelter@rlgsc.com writes...
- #In article <1993Jan4.204413.2561@merrimack.edu>, finocchiaroj@merrimack.edu writes:
- #> I have a question on whether there is a Uppercase function that you can use for
- #> a batchfile, or is there an escape sequence to turn on Capslock. For example
- #> say this is a batchfile:
- #>
- #> $ inquire/nopuct "enter your name: "
- #>
- #> And you want the user to type in his name like this JASON and not like jason
- #> I would appreciate any info on this.
- #>
- #> Thanks,
- #>
- #> Finocchiaroj@merrimack
- #--
- #There are two ways to do this. The first, which affects the
- #terminal, is to set the terminal to NOLOWER using the command:
- #
- # $ SET TERMINAL/NOLOWER
- #
- #This will have the effect of forcing all input AND output to
- #upper case.
- #
- #A more preferred approach (IMHO) is to use the lexical function
- #F$EDIT with the "UPCASE" parameter to force everything in the
- #string read in to UPPER case.
- #
- #I hope that this information is helpful.
- #
- #- Bob
- #+--------------------------------------------------------------------------+
- #| Robert "Bob" Gezelter E-Mail: gezelter@rlgsc.com |
- #| Robert Gezelter Software Consultant Voice: +1 718 463 1079 |
- #| 35-20 167th Street, Suite 215 Fax: (on Request) |
- #| Flushing, New York 11358-1731 |
- #| United States of America |
- #+--------------------------------------------------------------------------+
-
- Bob,
-
- We had this problem a while back. The idea then was also to *echo* the
- answer in uppercase only no matter what case was typed in. I found that
- what I wrote here (a one-line statement as you suggest Set Term/nolower)
- worked for doing what I just said, but did NOT work at another site. It
- seemed to depend on the terminal hookup and if an emulator was being used.
- Probably something to do with local echo. I did not investigate the problem
- further since I was not the one having the problem any more. The F$EDIT
- forces the string to be read into the symbol in uppercase, but the screen
- echo may still be in lower or mixed case.
-
-
- Fred W. Bach , Operations Group | Internet: music@erich.triumf.ca
- TRIUMF (TRI-University Meson Facility) | Voice: 604-222-1047 loc 278/419
- 4004 WESBROOK MALL, UBC CAMPUS | FAX: 604-222-1074
- University of British Columbia, Vancouver, B.C., CANADA V6T 2A3
-
- These are my opinions, which should ONLY make you read, think, and question.
- They do NOT necessarily reflect the views of my employer or fellow workers.
-