2004 Nov 04 10:31 AM
HI !
I want to define a char variable and fill it with a string
like
DATA: myString type CHAR255.
myString = 'ashgdfhgashdf dhfghasdf sd hdsf'.
but the editor automatically makes a linefeat and shows an error if i want to aktivate it.
editor makes something like that:
myString = 'ashgdfhgashdf dhfghasdf
sd hdsf'.
Can i insert a sign or something else to write strings longer than about 80 chars??
mfg Markus
2004 Nov 04 10:37 AM
If you are able to write the entire string in a single line, you can do something like:
mystring =
'ldkfjldskjfsldfkjdslfkjdslfkjdsfdsf'.
If not, I think you will need to use concatenate.
mystring = 'part1 of text'.
CONCATENATE mystring 'part2 of text'
INTO mystring.
CONCATENATE mystring 'part3 of text'
INTO mystring.
Many times as needed.
Wish it helps.
If you are able to write the entire string in a single line, you can do something like:
mystring =
'ldkfjldskjfsldfkjdslfkjdslfkjdsfdsf'.
If not, I think you will need to use concatenate.
mystring = 'part1 of text'.
CONCATENATE mystring 'part2 of text'
INTO mystring.
CONCATENATE mystring 'part3 of text'
INTO mystring.
Many times as needed.
Wish it helps.
2004 Nov 04 10:35 AM
Hi Markus,
Up to 4.6 the editor is limited to 72 char. But you can use the CONCATENATE statement to accomplish this...
Regards,
John.
2004 Nov 04 10:37 AM
If you are able to write the entire string in a single line, you can do something like:
mystring =
'ldkfjldskjfsldfkjdslfkjdslfkjdsfdsf'.
If not, I think you will need to use concatenate.
mystring = 'part1 of text'.
CONCATENATE mystring 'part2 of text'
INTO mystring.
CONCATENATE mystring 'part3 of text'
INTO mystring.
Many times as needed.
Wish it helps.
2004 Nov 04 2:20 PM
Hi
I guess you can use: (That is use ampersand character to concatenate literals)
myString = 'abcdefghijklmnopqr' &
'stuxwyz' .*--Serdar
2004 Nov 17 9:46 AM
Hi Markus,
You might know this already but still try changing the user specific settings of the Editor. Just uncheck the default length 72.
HTH,
Zubair
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |