Grace Cheong
7th July 2011, 06:12
Hi all,
I have a long string data(string) and need to convert it to text type (long) and display to report, but it doesn't work.
I need my report output auto display into multil lines from a string consists of long value: Eg: (1111111112222222222333333333344444444445555555555...)
1111111111
2222222222
3333333333
4444444444
5555555555
...
My coding is:
#include <bic_text>
extern domain tcmcs.str256 Str256
String buffer(10,20)
extern domain tctxtn StrLines
extern domain tctxtn multiline
function DisplayText()
{
Str256 = "11111111112222222222333333333344444444445555555555...."
StrLines = lval(Str100) |-- convert to long type
multiline = text.to.buf(StrLines, language$, 10, buffer)
rprt_send()
}
I place the "multiline" to report, it doesn't display data. Is there anything wrong to my coding?
--- Grace ---
I have a long string data(string) and need to convert it to text type (long) and display to report, but it doesn't work.
I need my report output auto display into multil lines from a string consists of long value: Eg: (1111111112222222222333333333344444444445555555555...)
1111111111
2222222222
3333333333
4444444444
5555555555
...
My coding is:
#include <bic_text>
extern domain tcmcs.str256 Str256
String buffer(10,20)
extern domain tctxtn StrLines
extern domain tctxtn multiline
function DisplayText()
{
Str256 = "11111111112222222222333333333344444444445555555555...."
StrLines = lval(Str100) |-- convert to long type
multiline = text.to.buf(StrLines, language$, 10, buffer)
rprt_send()
}
I place the "multiline" to report, it doesn't display data. Is there anything wrong to my coding?
--- Grace ---