09-23-2021 04:13 AM
I have read
array size from refnum - NI Community
the Problem is 17 Years old and i hoped the Number of Rows/ Number of Columns Property would have fixed that but is seems these propertys only give the frontend displayed size and not the actuall data size back.
is there a better way to get the size of an array by refnum then flatten its value and reading the first bytes?
Solved! Go to Solution.
09-23-2021 04:29 AM - edited 09-23-2021 04:31 AM
If the refnum is strictly typed, the Value property will do what you want. If the refnum is a generic array, Value will return an array of Variant that you will need to convert to the actual value, element by element.
09-23-2021 06:00 AM
its generic and i only know it has 1 Dimension and it is of some generic cluster with controles in it : /
09-23-2021 07:42 AM
09-23-2021 06:01 PM
@PaulPascher wrote:
... i hoped the Number of Rows/ Number of Columns Property would have fixed that but is seems these propertys only give the frontend displayed size and not the actuall data size back.
That's the purpose of these properties, so there is nothing to "fix". The array size is not a property, but part of the data and you already got good suggestions.
(Can you explain why you think you need all that? Maybe there is a fundamentally better way to do whatever you are trying to do.)
09-30-2021 01:59 AM
You'd think the Get Array Information from the Variant pallette would answer this, but alas.