[Info-vax] Quoting question

Bob Gezelter gezelter at rlgsc.com
Wed Jan 21 12:02:44 EST 2015


On Wednesday, January 21, 2015 at 11:54:14 AM UTC-5, Jan-Erik Soderholm wrote:
> JF Mezei skrev den 2015-01-21 17:32:
> >
> > Say I have:
> >
> > $chocolate = "good"
> > $cherry = "red"
> > $flavour = "chocolate"
> >
> > is there a way to have
> >
> > $write sys$output "''flavour' is ?????????"
> >
> > come out  as "chocolate is good"  ?
> >
> > or would I have to do a substitution to a temporary variable first and
> > use that temp variable in the write sys$output command ?
> >
> 
> $ CHOCOLATE = "good"
> $ CHERRY = "red"
> $!
> $ flavour = "CHOCOLATE"
> $ write sys$output "''flavour' is ''&flavour'"
> CHOCOLATE is good
> $
> $ flavour = "CHERRY"
> $ write sys$output "''flavour' is ''&flavour'"
> CHERRY is red
> 
> 
> I have not been able to solve the upper/lower case isssue...
> 
> Jan-Erik.

Jan-Erik,

The case "problem" is solved by using F$EDIT and F$EXTRACT to capitalize the first letter and force lower case on the remainder (presuming English capitalization).

- Bob Gezelter, http://www.rlgsc.com



More information about the Info-vax mailing list