LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect an empty Variant?

Solved!
Go to solution

Also remember that an empty variant can still have variant attributes that can differ.


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
Message 11 of 12
(90 Views)

@GerdW wrote:

Hi PNB,

 


@PNB wrote:

If the variant e.g. contains 64byte integer values, this comparison will also result in true, although data are contained within the variant.


Can you please provide an example VI to demonstrate that observation?

 


The only instance I could see of this method not working is if your incoming variant is "empty", but has variant attributes.

 

In that case you'd probably need to use "Get Type Information" to tell if the variant itself is empty.

BowenM_0-1620835105290.png

 

 

0 Kudos
Message 12 of 12
(86 Views)