[Info-vax] Quoting question

Jan-Erik Soderholm jan-erik.soderholm at telia.com
Wed Jan 21 13:12:50 EST 2015


Bob Gezelter skrev den 2015-01-21 18:02:
> 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).

Yes, but I had no time to work it out as a one-liner.
Using multiple line it's easy, of course, and I do
not think JF had asked in that case...

Jan-Erik.


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




More information about the Info-vax mailing list