ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

size array indicator width

Solved!
Go to solution

Is it possible to autosize the width of a string array based on the maximum  length of the strings in all of the elements?

0 Kudos
Message 1 of 5
(3,262 Views)

Hi id,

 

yes, that's possible...

 

 

Spoiler

- Check the length of all strings, either by StringLength or by GetTextRect

- set the width of the string indicator to fit the longest string using a property node

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,243 Views)

that works for the individual element but the array indicator that contains the string doesn't resize automatically to fit the new width. 

0 Kudos
Message 3 of 5
(3,234 Views)
Solution
Accepted by id

Hi id,

 

for me the string array indicator changes the width when I set the width of the string element!

 

Show your VI to spot the problem...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,229 Views)

you are correct.  I had a misplaced reference...thx

0 Kudos
Message 5 of 5
(3,212 Views)