‎2009 Feb 24 7:32 AM
Hi Experts:
How can i concatenate single quote ( ' ) with my string .
Ex: votre bon d'achat -
> This is my string name as Str.
if i assign this to Str
str = 'votre bon d'achat' .
it throws error ( Incorrect arithmetic or bit expression: Instead of "ACHAT", an operator . because the string contains Single Quote ( ' ) .
Please throw some light on it.
Thanks,
Venkat
‎2009 Feb 24 7:35 AM
use 4 single quotes to get one single quote ...
concatenate 'votre bon d' '''' 'achat' into str.
‎2009 Feb 24 7:35 AM
use 4 single quotes to get one single quote ...
concatenate 'votre bon d' '''' 'achat' into str.
‎2009 Feb 24 7:47 AM
‎2009 Feb 24 9:59 AM
Sorry, I have posted in the wrong place.
Edited by: Dicso Luiza Alexandra on Feb 24, 2009 10:59 AM
‎2009 Feb 24 7:36 AM
Hi,
data: str type string.
str = 'votre bon d''achat' .
write:/ str.
‎2009 Feb 24 7:37 AM
‎2009 Feb 24 7:37 AM
Hi ,
You can use concatenate command.
Here is a sample code
data : str type string.
concatenate 'votre bon d' '''' 'achat' into str.
WRITE STR.Regards
Arun
‎2009 Feb 24 7:38 AM
‎2009 Feb 24 7:43 AM
If u want ' after d try this
concatenate 'votre bon d~achat' into str.
or
If u want ' for both sides of string
concatenate 'votre bon dachat~' into str.