Focal Point
Displaying reserved characters in heading

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3891097331

September 01, 2004, 04:33 PM
reFOCUSing
Displaying reserved characters in heading
How can you display < in the heading of a report?

I would like to do something like the following:

<------>
September 01, 2004, 04:39 PM
Leah
Your post doesn't read the same as you posted it.

DEFINE FILE HOLD2
LTSYMB/A1 WITH STU_ID = '<';
END
TABLE FILE HOLD2
HEADING
"STUDENT'S WHOSE LAST TERM ACTIVITY WAS &TERM " "

I just tried this and it worked to show the < in the heading.
September 01, 2004, 07:38 PM
reFOCUSing
Is there a way of doing it without creating a define?
September 01, 2004, 07:47 PM
Leah
I don't know the answer on that one, do you want to use it for a specific purpose to say less than the shorthand way?

I think I tried using it in a footing once and just went to LT to solve it.

The brain cells are getting a bit fuzzy these days.

Leah C
September 01, 2004, 07:56 PM
reFOCUSing
I was able to get < in the heading by just using &|lt.
March 09, 2006, 08:26 AM
canderson
reFOCUSing, can you show me an example of this:
"I was able to get < in the heading by just using &|lt"?
Thanks.
March 09, 2006, 09:15 AM
Tony A
The reason this functions (in HTML) is that a web browser will replace &lt; with the left carat and &gt; with the right hand version. so this code will give you the required output -
TABLE FILE CAR
SUM DCOST
BY COUNTRY
HEADING
"&|lt;-----------------&|gt;"
END


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
March 09, 2006, 11:38 AM
reFOCUSing
Wow this post is old. Thanks for the replies but maybe I should have told you we are displaying the reports in PDF and not HTML.
March 10, 2006, 07:26 AM
canderson
Thanks, but, unfortunately, I'm working with EXL2K and this approach doesn't seem to work.
March 10, 2006, 08:18 AM
Tony A
Move to using a field value then -

-DEFAULT &Format = 'EXL2K'
DEFINE FILE CAR
  HEADER/A30 = IF '&Format' EQ 'HTML'  THEN '&|lt;----------------&|gt;'
          ELSE '<---------------->';
END
TABLE FILE CAR
SUM DCOST
BY COUNTRY
HEADING
"<HEADER"
ON TABLE PCHOLD FORMAT &Format
END


T

This message has been edited. Last edited by: Tony A,



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10