[50956] in SAPr3-news

home help back first fref pref prev next nref lref last post

Re: Programming Question - Escape character for apostrophe - '

daemon@ATHENA.MIT.EDU (Christoph Thomas)
Thu Aug 5 17:49:13 2004

To: sapr3-news@mit.edu
Date: Thu, 05 Aug 2004 23:48:45 +0200
From: Christoph Thomas <christoph.thomas@gmx.de>
Message-ID: <ceua0g$i7e$1@svr7.m-online.net>

Hello Yokie,

its partially obsolet now, but escape character for ' is '. You can use:
TRANSLATE PRPS_R-VERNA USING ''' '.

But thanks for Your solution it is really interesting for other characters (TAB or LineFeed CarriageReturn)

Christoph

yokie_joe@hotmail.com schrieb:
> Yokie_Joe wrote:
> 
>>Hello all
>>
>>I want to do a translate or search and replace statement which will
>>check a string for the character ' and replace it with a space. Is
>>there an escape character for ' because if I write:
>>
>>TRANSLATE PRPS_R-VERNA USING '' '.
>>
>>I get a syntax error.
>>
>>thanks in advance
>>
>>Joe
> 
> 
> Found a solution:
> 
> *27 -> HEX VALUE FOR '
> *20 -> HEX VALUE FOR SPACE
> 
> data: v_apos(2) type x value '2720'.
> TRANSLATE t_file-PRPS_R-VERNA USING v_apos.
> 

home help back first fref pref prev next nref lref last post