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
(2,437 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
(2,418 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
(2,409 Views)
Solution
Accepted by topic author 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
(2,404 Views)

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

0 Kudos
Message 5 of 5
(2,387 Views)