georgekm Posted July 17, 2008 Report Share Posted July 17, 2008 Hi all, I'm using Control Value: Get All [Variant], a method of the VI class. The method returns an array of clusters. Each control in the VI is represented by a cluster (of two elements: the name of a control and it's associated value expressed as a variant). The clusters are contained in the 1D array. The only problem I'm having is that I'm not sure how to reorder my controls in the array. They seem to be ordered based on the order that they were added to the front panel of the VI. Unfortunately, this isn't the order I would like them in, and I want to avoid having to programmatically manipulate the array to order them properly. Is there some way I can change this order without either 1) going in and replacing all the controls on the VI in the desired order, or 2) programmatically manipulating the returned array? Thanks for your time Quote Link to comment
Chip Grandits Posted July 17, 2008 Report Share Posted July 17, 2008 QUOTE (georgekm @ Jul 16 2008, 04:09 PM) The only problem I'm having is that I'm not sure how to reorder my controls in the array. They seem to be ordered based on the order that they were added to the front panel of the VI. Did you try Edit -> Set Tabbing Order from the front panel of the VI in question? -Chip Quote Link to comment
ASTDan Posted July 18, 2008 Report Share Posted July 18, 2008 You can right click on the cluster and select "Reorder Controls in Cluster". Dan Quote Link to comment
georgekm Posted July 18, 2008 Author Report Share Posted July 18, 2008 Setting the tabbing order seems to do the trick. Thanks Chip! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.