Can i do something like that ?
You need to read all properties and store them in an array.
Maybe you need to convert some values to strings before building that array.
Maybe you could use a cluster instead of an array…
No. See the definition of arrays. The elements of an array must be the same data type! So for example, you cannot store the "Visible?" and "Value" properties of a numeric control in the same array. The first property is a Boolean type, the second is a Double numeric data type.
But what you can do is to create a type defined cluster to store those values which you want:
Edit: or as GerdW suggested, you could "Flatten to String" all the properties, then store it in an array. But a cluster is much easier to handle, using the Bundle/unbundle by names. Using arrays you can make mistakes more easy, and you need to keep track which property you store at which index of the array...
Sorry i asked a wrong question. I want to get all names of property and write to an array, how can i do that?
Here is the list of all properties of a generic control:
Edit: also see this: http://digital.ni.com/public.nsf/allkb/C53188E560BC57C086257161005E1E37
i know about that, but i want to do this dynamically not static.
Then also read the properties for specific controls from the LabVIEW help.
When there is a reference to some control in your VI you need to determine its specific type, then get the corresponding properties from the list in the LabVIEW help.
Why do you need to determine property names of a control at runtime???
I've done this before when I needed to get a list of properties a given .NET node had. Here's basically what I did: