What Im doing is putting the formula that Ido told me to use which is:
MyString := MyString + {table.med_cond} + " "
Im wondering if theres anyway to keep it from breaking, say if the med condition is Heart Disease, Heart then going to the next line and Disease. I do have the field width across the whole page, but I have a multi column form so I'm trying to get it as close as possible. I have multiple fields on my report that I can only span across half the page but they still want it to list across rather than down. I just was wondering if there is any possible way to keep it from breaking like the html tag NOBR. Appreciate any help!! Thanks
The is no good way of doing it. A solution that ignores the obvious issue that you are likely using a proportional font is to:
Assume you will have a line break after no more than 40 characters.
Search MyString for the last "," prior to the 40th character.
Record the position of that "," in a variable EndLine1.
Update a variable MyStringLine1 := MyString [1 to EndLine1]
Search MyString for the last "," prior to EndLine1 + 41
Record the position of that "," in a variable EndLine2.
Update a variable MyStringLine2 := MyString [EndLine1 + 1 to EndLine2]
etc.
As you can see, it is tedious and doesn't account for proportional spacing.
Malcolm
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.