Choose Language Hide Translation Bar
Highlighted
Ole
Ole
Level III

Wrapped cells in table: Is there a way to get the number of text lines in a given cell

Hi,
I have similar question as in the post Output JMP table to formatted journal or picture with wrapped cells.  The post answers how to display multiple lines in a data table.

One additional issue I have is that the number of text lines varies. In order to set the correct cell height I would need to be able to extract how many lines of text are in each cell. Then I can use the max number of lines to define the cell height.

Is there a way to extract the number of text lines in a cell?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
peng_liu
Staff

Re: Wrapped cells in table: Is there a way to get the number of text lines in a given cell

This seems to be able to return the number of physical lines on my Windows.

nitems(words(:Text,"\!r"))

It may not be portable. Otherwise, try

"\!n"

View solution in original post

2 REPLIES 2
Highlighted
peng_liu
Staff

Re: Wrapped cells in table: Is there a way to get the number of text lines in a given cell

This seems to be able to return the number of physical lines on my Windows.

nitems(words(:Text,"\!r"))

It may not be portable. Otherwise, try

"\!n"

View solution in original post

Highlighted
txnelson
Super User

Re: Wrapped cells in table: Is there a way to get the number of text lines in a given cell

Cool
Jim