2009 Nov 05 11:34 AM
Hello,
I want to print an apostrophe in a program. There is a special character that helps to recognise the character immediately after it as printable. Which is that character?
Regards,
Diana
Hello,
I want to print an apostrophe in a program. There is a special character that helps to recognise the character immediately after it as printable. Which is that character?
Regards,
Diana
2009 Nov 05 11:38 AM
Hello,
FAQ.
1.
CONSTANTS: C_APOS TYPE CHAR1 VALUE `'`. "--> String Literal
WRITE: C_APOS.2.
CONSTANTS: C_APOS TYPE CHAR1 VALUE ''''. "--> Character Literal
WRITE: C_APOS.There is a special character that helps to recognise the character immediately after it as printable
I think you are talking about the escape character & for an apostrophe ('), the escape character is an apostrophe itself 😄
BR,
Suhas
2009 Nov 05 11:38 AM
Hi,
u can use like this.
u put "" before the apostrophe.
data: LINE(20) type c.
CONCATENATE 'It''' 's Hot' into line.
write:/ LINE.
another way
WRITE:/ 'You''ll be there.'.
Edited by: shambhu sharan pandey on Nov 5, 2009 12:40 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |