AngryRobot

Is there a way to filter or inspect structure members?

4 posts in this topic

I have a structure named "Tests" with three BOOL members (Active, Passed, Failed).  I have another structure called "All Tests" with 12 "Tests" members.

Is there a way to look into the structure All Tests and determine if any of the ".Failed" members is active?

 

Share this post


Link to post
Share on other sites

I had this same question a while ago. I ended up creating a Function for this purpose.

Share this post


Link to post
Share on other sites

You can easily view the contents of a structure by adding it in the watch tab page. Simply click on View --> Watch Tab Page (alternatively you can push keyboard shortcut: ALT + 4). Fill out the Device name, and name of the structure. A small arrow will appear next to the structure, click this to expand the structure to view all of its contents.

Share this post


Link to post
Share on other sites

Watch Tab Page (Table) can also be used for structures.  Shows all elements in a structure the same way it does arrays.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now