LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Technico

Allow an array of references as input for Property node or Invoke node (method)

Status: Duplicate
See additional idea conversation linked below.

currently the property node only accepts a single reference.

For setting a property or calling a method on an array of references

it is currently required to surround the node with a for loop.

It would be much easier if the array of references could be directly conected to the node,

especially for situations like enabling, hiding, ... a list of controls

Message Edited by Technico on 06-09-2010 05:09 AM
4 Comments
tst
Knight of NI Knight of NI
Knight of NI
This has already been suggested here.
Message Edited by tst on 09.06.2010 03:58 PM

___________________
Try to take over the world!
JackDunaway
Trusted Enthusiast

Look at my comment on the other post about why this is a bad idea. Property reads would now need to return arrays. Property reads that already return arrays, such as "Strings[]" or "Annotation List", would need to have another dimension added (the node would now need to return an array of arrays). But since a ragged (jagged) array would be necessary, the output would first need to be clustered then arrayed.

 

It may create a slightly nicer API for PN's (removing the "Vestigial For Loop"), but the negative ramifications far outweigh a lightweight syntax improvement.

Technico
Member
Sorry, I did perform a search before posting this idea, but I did not found a match...
Todd S.
NI Employee (retired)
Status changed to: Duplicate
See additional idea conversation linked below.
Todd S.
LabVIEW Community Manager
National Instruments