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

Max. No. of Lines with Can Grow 2

Status
Not open for further replies.

PeterOcean

Programmer
Mar 26, 2002
27
CA
Is it poss to write a formula to set the max number of lines when you set the Can Grow. I want to say something along the lines:

If pagenumber = 1 then
MAX NO. OF LINES = 5
ELSE
MAX NO. OF LINES = 25
end if

This is for 8.5
 
not really but by trial and error (as long as the field is less than 254 chars) you might limit the size of the string variable

for example: if a field width handled 10 chars/line then your formula would look like

If pagenumber = 1 then
left({Table.strvalue},50)
ELSE
left({Table.strvalue},250);

in crystal syntax...on memo fields you cannot do this however.


Jim
JimBroadbent@Hotmail.com
 
You can set Max Lines for Can Grow in the Format Editor, but I don't think you can use a formula. A workaround would be to place two identical can-grow objects, superimposed, one with a 5-line max, suppressed when PageNumber > 1, the other with a 25-line max suppressed when PageNumber = 1.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top