LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String reference


@maxnoder1995 wrote:

maxnoder1995_0-1742566881801.png

I’ve written a program that positions each Boolean control directly below a String control on the front panel.

Is this the best approach to do it?


Why? 

Select them and use Align.

Yamaeda_0-1742567846680.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 11 of 13
(110 Views)

@maxnoder1995 wrote:

maxnoder1995_0-1742566881801.png

I’ve written a program that positions each Boolean control directly below a String control on the front panel.

Is this the best approach to do it?


I guess yes, if it works as you want. It really depends on your actual need.

 

Why do you want to position your booleans dynamically? Your string controls have to be positioned manually anyway...

Also, if for some reason the tabbing order is not right, you will have mixed string-boolean associations. You may want to use a logic on the names instead. For example: "Boolean1" goes under "String1", "Boolean2" goes under "String2", etc...

 

Wouldn't a transparent array of cluster be enough?

 

raphschru_0-1742568224745.png

0 Kudos
Message 12 of 13
(107 Views)

@maxnoder1995 wrote:

I understand. Is there a way to retrieve only the "top-level" controls in the top method? Additionally, is there a way to determine the order of the references returned by these two methods?


I don't know what you are trying to accomplish, but each G Object has a unique identifier.

paul_a_cardinale_0-1742747932892.png

Maybe you could put that to some use.

0 Kudos
Message 13 of 13
(51 Views)