Jump to content

Variant Data: Comparing prior and present values


donroth

Recommended Posts

Hi:

For you VARIANT gurus, have you run into any problems when comparing a present value of a variant (imagine for example a cluster of various types of controls that was converted to variant type) to a prior value and erroneously not sensing a change (when in fact the present value has changed from the prior value). I seem to be running into this problem whether comparing the variant data directly or even when performing a Variant-to-data conversion and then doing the comparison.

Can provide an example if needed. Is this one weakness of using variant data?

Sincerely,

Don

Link to comment
Hi:

For you VARIANT gurus, have you run into any problems when comparing a present value of a variant (imagine for example a cluster of various types of controls that was converted to variant type) to a prior value and erroneously not sensing a change (when in fact the present value has changed from the prior value).  I seem to be running into this problem whether comparing the variant data directly or even when performing a Variant-to-data conversion and then doing the comparison.

Can provide an example if needed.  Is this one weakness of using variant data?

Sincerely,

Don

Don,

Yes please provide an example. I'n not sure why you are having problems. But, there are cases where Variants are buggy (LabVIEW bug) in LabVIEW 6.1 and earlier.

-Jim

Link to comment

Hi Jim:

This was in LV7. I put together a simple example which caused me to figure out the problem (which happened to be brainblock on my part). So in fact the variant comparison worked perfectly (I got a little scared there because I have used this over and over in LV6.1 successfully). I attach the simple example that does in fact work properly.

Sincerely,

Don

Download File:post-10-1073107278.llb

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.