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

string

Former Member
0 Likes
733

hi,

how to read apostrophe in strings so that no error message

is received.

5 REPLIES 5
Read only

Former Member
0 Likes
705

may i know your requirement becuase qsn is not complete

regards,

surya

Read only

Former Member
0 Likes
705

hi,

if you need t replace then use keyword translate

translate <variable> using pattern ' ' <space> '

also ypu can yuse CP key word that is contains pattern ' ' '

hope its useful,

else elaborate more obn your requirement,

reward if helpful.

taher

Read only

Former Member
0 Likes
705

use '''' instead of '

i.e. 4 apostrophe instead of 3.

i.e.

data : a type string.

a = 'abc'.

concatenate a '''' a into a.

write 😕 a.

result

abc'abc

Read only

Former Member
0 Likes
705

Hi Anupama,

first concatenate that ' with some character and after that u can use it.

regards,

ravi shankar reddy

Read only

0 Likes
705

Hi Anupama,

Create a text element with the description ' (apostrophe) in the program text elements.

Now if you have a string with value abc'def and you want to read ', then use FIND command.

Regards,

Sagar