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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fields inside text ojects and "can grow" issues. 1

Status
Not open for further replies.

-cush-

Programmer
Feb 18, 2004
145
US
I wanted to keep two fields close together. The first field varied in width, so the natural solution was to drag the two fields inside of a text object. The problem is that the second field may have hard returns in it and even though it is set so that it "can grow" and so is the text object, the second field only shows the first line once it is inside the text object.

Any ideas on how to keep fields 1 and 2 close together and allow field 2 to show it's hard returns and multiple lines?
 
Will both fields always have a value or could one be null?

If they both will always have a value, I would create a formula like this and use it instead of the text block:

{Field1} + ' ' + {Field2}

If either of them could be null, you'll need to do something like this:

StringVar s := '';
if not IsNull({Field1}) then s := {Field1} + ' ';
if not IsNull({Field2}) then s := s + {Field2};
rtrim(s)

-Dell

DecisionFirst Technologies - Six-time SAP BusinessObjects Solution Partner of the Year
 
That should do it. I would prefer to have the data aligned after each of the hard returns in field 2, so I may use your solution, but my just make the first field short and have it wrap if needed, and keep field 2 separate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top