Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

programming question...

Status
Not open for further replies.

onamia28

Technical User
Jan 14, 2006
2
US
I'm trying to do a just a simple inventory program in rpg 4. Everything looks great except for the title when I print it out. It bunches my first two words together. When I try entering the entire name on the constant line and it doesnt allow me to add the ending apostrophe ('). Is there a way to extend that field?
 
You have to put the remainder on another line. An apostrophe within a quoted string must be represented by two apostrophes:

Code:
     OQSYSPRT   E            HEAD           1  1                                
     O                                           41 'This field''s description '
     O                                           68 'contains an apostrophe and'
     O                                           82 ' is very long.'

Feles mala! Cur cista non uteris? Stramentum novum in ea posui!

 
I forgot to mention that the numbers 41, 68, and 82 are the ending columns for the strings. Note the space at the end of the first string is column 41; the word "description" ends in column 40.

Feles mala! Cur cista non uteris? Stramentum novum in ea posui!

 
Thank you so much...I never thought it would be just that easy!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top