style sheet in CGI Wrapper question

dkellgren

Member
Rookie question here...

How does one reference the style properties that include "{" and "}" when Progress doesn't like them.

Here is my grieving code (in a CGI wrapper):

RUN outputHeader.
{&OUT}
"<HTML>":U SKIP
"<HEAD>":U SKIP
"<TITLE> {&FILE-NAME} </TITLE>":U SKIP
'<style type="text/css">'
'TD {font-size:10pt;font-family:arial}'
'TH {font-size:10pt;font-family:arial}'
'INPUT {font-size:10pt;font-family:arial;width:50pt}'
'</style>'
"</HEAD>":U SKIP
"<BODY>":U SKIP
.
/* Output your custom HTML to WEBSTREAM here (using {&OUT}). */

How do you "take the magic" away from the curly brackets (or otherwise reference}?

I can't seem to find an answer on the board as it relates to CGI wrapper. Any help would be appreciated!

-dk-
 

Crittar

Member
{Try This}

-dk-

Taking one line from your code:

'TD {font-size:10pt;font-family:arial}'

try using the following instead:

'TD ' + CHR(123) + 'font-size:10pt;font-family:arial' + CHR(125)

and in all similar lines replacing { with CHR(123) and } with CHR(125).

I have found that this works in programs where I need to output {}.
 
U

Unregistered

Guest
You can make Progress ignore the special meaning of the curly brace characters by using a tilde character (~). Just put it immediately in front of the curly brace character.

Hope this helps you.

Shukant Chakravarty
 

dkellgren

Member
That was the first thing I tried and it didn't work. I just went back now and redid it with the ~ and it worked. I must have had my quotes wrong.

Thanks to all!

-dk-
 
Top