LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wrap text in tables?

Solved!
Go to solution

Is there any way to wrap the text in a table?

 

Specifically the column headers.

 

If I have a header like Input Voltage I would like it to wrap like in Excel

 

Input

Voltage

 

So the column width does not need to be set wire just to read the headers

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 1 of 4
(3,406 Views)
Solution
Accepted by topic author RTSLVU

Use a property node to set up your column headers and include a new line between Input and Voltage. When the data going to the property node is viewed as code display you will see 'Input\nLevel'.

0 Kudos
Message 2 of 4
(3,399 Views)

Yeah, I guess that works but I was hoping for a more elegant soultion.

 

I am pulling the table contents from an Excel file and a couple of the headers have more than one space. So a simple find and replace space for new line does not work very well. That means I will have to set up special cases or somethign for some of them.

 

I know I could just hard code the headers but I am writing several programs for a department that uses simmilar but different input file formats for their tests and was hoping to only have to do this once. As much as I hate to I will probably just end up hardcoding it for now...

 

I am going to suggest word wraping for tables in the idea exchange. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 4
(3,382 Views)

RTSLVU wrote:

 

I am going to suggest word wraping for tables in the idea exchange. 



I'll vote for that.

0 Kudos
Message 4 of 4
(3,373 Views)