jack786
28th August 2004, 09:04
Gurus,
In my report I have only length 10 available.But I need to show a input field of lenth 20.Can I show like the below??


Instead of showing "abcdefghijklmnopqrst"
Can I show "abcdefghijk"
"ijklmnop"

with out creating 2 input fields(I mean with out breaking) can we acheive this functionality.Like for labels we have length concept,like that do we have any thing for form fields??

Thanks in advance
jack

Hitesh Shah
28th August 2004, 18:18
Such option is only for labels . For form fields all user can do is to extend the display of such fields with Tools ==> Extend fields in UI.

SriksAdi
30th August 2004, 08:01
Hi,
May be you can try out this :

string str(10)

str = "abcdefghij"

In the report have fields as str(1;3), which will print "abc" and str(4;7) which will print "defghij"


regards
Sriks

jack786
3rd September 2004, 14:25
Hai
Can you tell me how to split text fields(domain tctxtn) into 2 or more strings.

rgds,
jack

SriksAdi
3rd September 2004, 14:39
Hi,
You can use text.to.buf() to get the text value and use it as per the requirement.

Syntax :

long text.to.buf( string text_field(17), string lang, long nr_lines, ref string buf(,) )

Description

This stores the text of text_field for the given language into the two dimensional array buf. The nr_lines argument contains the maximum number of lines that may be stored in the buffer. The rtf.text argument is a flag that you can set to store the text in RTF format instead of ASCII format. This flag is available only when using a text group that stores RTF data.

Return values

>0 number of stored lines
0 error
- 1 no permission to store the text

mr_suleyman
3rd September 2004, 14:45
Hi there I think that you cannot show like your wish but you can split into 2 parts
on report layout you could define other field on other line.
for example your variable is str(20)
on report layout you should add new variable to new line.
one of them = str(1;10)
other = str(10;20)

You may review your layout structure , may be get additional 10 char

I don,t know other solution.

Good lucks...