We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is_valid_ref.vi
Currently, Table.lvclass and Item.lvclass implement input validation of object references.
Table.lvclass
Item.lvclass
Here is how is_valid_ref.vi raises an error if it's optional raise error if invalid? (False) input is set to True:
raise error if invalid? (False)
True
This should be used throughout the class to validate the reference prior to calling the DLL.
For example:
Notice how we use it in the constructor(s) and destructor, too, in addition to the various get/set VIs in the class.
Also, be sure to validate any additional object/reference arguments passed into a method, in addition to the primary reference, as shown below:
The text was updated successfully, but these errors were encountered:
working on #7
e0ade9e
implement is_valid_ref.vi input validation for all classes
laurammiller
No branches or pull requests
Currently,
Table.lvclass
andItem.lvclass
implement input validation of object references.Here is how
is_valid_ref.vi
raises an error if it's optionalraise error if invalid? (False)
input is set toTrue
:This should be used throughout the class to validate the reference prior to calling the DLL.
For example:
Notice how we use it in the constructor(s) and destructor, too, in addition to the various get/set VIs in the class.
Also, be sure to validate any additional object/reference arguments passed into a method, in addition to the primary reference, as shown below:
The text was updated successfully, but these errors were encountered: