Re: Oracle Report*Writer Question - '.' in char fields.

From: <hazledine_at_embl-heidelberg.de>
Date: 4 Oct 93 11:18:24 +0100
Message-ID: <1993Oct4.111824.120123_at_embl-heidelberg.de>


2843600_at_jeff-lab_at_queensu.ca (Steve Frampton) writes:

> I am experiencing a strange problem when it comes to writing reports with
> '.' characters in the fields. It seems RPT/RPF adds extra spaces if it
> sees the '.' character.
> [...]
> Any ideas of why this is happening and how to avoid this?

It's a feature of RPF. Page 29 of the User's Guide states:

"RPF interprets a period terminating a word as end-of-sentence, and inserts two spaces before the beginning of the next sentence."

The User's Guide goes on to explain that you can use the RPF escape character, backslash (\), to force RPF to treat a period as a regular character and not an end-of-sentence meta-character. What they don't mention is that you can use the TRANSLATE function in SQL to do this for text retrieved from a table (as opposed to editing literal text in an RPF file by hand, which is what they show in the User's Guide). Something like this in an RPT macro should do the trick:

	SELECT	TRANSLATE(TEXT,'.','\.')
	INTO	...
	FROM	...

--------------------------------------------------------------------------------
David Hazledine                                                EMBL Data Library
Database Administrator                                                PF 10.2209
EMBL Data Library                                      69012 Heidelberg, Germany

Internet: Hazledine_at_EMBL-Heidelberg.DE


Received on Mon Oct 04 1993 - 11:18:24 CET

Original text of this message