User | Kudos |
---|---|
4 | |
3 | |
3 | |
2 | |
2 |
The variant data type parsing palette is great when you have to deal with passing variants around. However, there is one call that would be super useful. If I have two variants, I'd like to know if they are of the exact same type. The type information only tells you so much. For example, if you have an array in the variant, it will only tell you it's an array, not a double float array, or a waveform array.
I've wrote a version of this that does it, but I'm not sure I cover all the edge cases. NI would be much better suited to ensure it covers all the potential typing possible and can likely make it more efficient than I could. But, I think this implementation solves this issue for most common data types and even some more exotic things that could be in a variant. I would love to see this included in the variant data type parsing palette.
In this example, I'm using it to check an array of variants to filter out ones of type I32.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.