home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!rutgers!cmcl2!rlgsc.com!gezelter
- From: gezelter@rlgsc.com
- Newsgroups: comp.os.vms
- Subject: Re: Help needed on Uppercase in a batchfile
- Message-ID: <1993Jan5.093943.306@rlgsc.com>
- Date: 5 Jan 93 14:39:43 GMT
- References: <1993Jan4.204413.2561@merrimack.edu>
- Organization: Robert Gezelter Software Consultant, Flushing, NY
- Lines: 36
-
- 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 |
- +--------------------------------------------------------------------------+
-