Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ESCAPE CHARACTER '

Former Member
0 Likes
1,946

Hi expert,

How can i check the character ' when i doing a string compare?

pls guide,

thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
813

u have to use the symbol 4 times . like - ''''

or declare constant

constant c_quote type c value ''''.

u have to use the symbol 4 times . like - ''''

or declare constant

constant c_quote type c value ''''.

4 REPLIES 4
Read only

Former Member
0 Likes
813

Hi,

You need to wrap it in the ` sign.

e.g.

IF w_field CS `'`.

On my keyboard this is on a key next to the number 1, but this could be different on different country's keyboards.

Regards,

Nick

Read only

Former Member
0 Likes
814

u have to use the symbol 4 times . like - ''''

or declare constant

constant c_quote type c value ''''.

Read only

Former Member
0 Likes
813

data : v_string type c value ''''. declare ' 4 times ...

Read only

0 Likes
813

While I'm by no means a point hunter, can you clarify if you think my suggestion was incorrect, or if you preferred the second suggestion for some other reason?

Thanks,

Nick