forchinacn
29th March 2007, 10:13
hi,all
When I use report tool, I want to display a multibyte field in multi-lines,so I want to split the field to two displaying field, I filled a display field with "dsca(1;10)" and another field with "dsca(11;20)", however, these fileds cannot display incorrectly.
thanks a lot.
en@frrom
29th March 2007, 11:12
Can you give a bit more detailed information? Maybe paste your code in here so people can have a look at it. What you describe sounds ok...
forchinacn
29th March 2007, 12:25
hi,en@frrom
it displays incorrectly, for example it perhaps displays "01234567890123456789" to "0123456789"(correct) and "7890123456789"(incorrect), in another word, the two report field that was splited cannot correctly be merged to the original value.
en@frrom
29th March 2007, 12:34
?? Now I am confused...
You first split a long string field into two shorter fields, and then you want to stick them together again?
If so..
domain tcmcs.str30 str.orig
domain tcmcs.str10 str.new1
domain tcmcs.str20 str.new2
domain tcmcs.str30 str.merge
str.orig = "012345678901234567890123456789"
str.new1 = str.orig(1;10) |str.new1 = "0123456789"
str.new2 = str.orig(11;20) |str.new2 = "01234567890123456789"
str.merge = strip$(shiftl$(str.new1)) & strip$(shiftl$(str.new2))
str.merge now contains "012345678901234567890123456789"
I hope this clarifies it and helps you solve your problem?
Regards,
Eli Nager