Jump to content

variant data type


Recommended Posts

Hello everybody,

I don't use variant data type because I haven't got information about it and I don't know when, how and why use this kind of data type. So, can anybody say me something about the use of variant.

Thanks.

Here is a document that has some info on variants:

http://www.openg.org/docs/LabVIEW%20Data%2...01%20of%202.pdf

Link to comment
I don't use variant data type because I haven't got information about it and I don't know when, how and why use this kind of data type. So, can anybody say me something about the use of variant.

There is plenty of information about variant data type in LabVIEW help, you should read that trough the help files. As a summary variant data type is a datatype that can hold any other LabVIEW data type. So you can convert any LabVIEW data to variant and then back again. The benefit is (if you consider it a benefit) that you can by-pass strict compile time type checks and perform the type checks at run time. The drawback is exactly the same thing.

LabVIEW 8.20 is a object oriented programming language (LV 8.0.1 is not) and you can do many things with LV classes more safely that you would need to use variants otherwise.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.