donroth Posted September 4, 2003 Report Share Posted September 4, 2003 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 Quote Link to comment
Jim Kring Posted September 4, 2003 Report Share Posted September 4, 2003 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 Quote Link to comment
donroth Posted September 5, 2003 Author Report Share Posted September 5, 2003 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.