12-11-2020 02:58 PM
I need to change background of font color of the parent item of a currently added child. Everything I try fails. No error, it just doesn't happen. There is a fundamental thing I don't understand here about accessing the item. This is how I am trying to change the color on an item I just entered:
Nothing changes.
Who can I change the background color of the last item I just entered?
Solved! Go to Solution.
12-11-2020 04:15 PM
Set the active tag (Active Item -> Tag) property before setting the font color:
12-11-2020 04:18 PM
Thank you. I am currently not setting the tag value but allowing the system to automatically set it. How do I retrieve the tag for the item I just created?
12-11-2020 04:42 PM
I think I am not understanding what tag is and exactly how it is used.
12-11-2020 04:47 PM
A tag is a unique identifier for every item in a tree. If you don't assign one, whatever is put into the "Left cell string" becomes the tag. If that is also blank, or if you try and create something with a tag that already exists, LabVIEW will add numbers to the tag to force it to be unique.
12-11-2020 04:52 PM
So a tag is like a key?
How would I retrieve the tag that was automatically assigned when I created the item if the tag had a number appended by LabVIEW when it was created?
In my case my date may look like this:
Item1
- Child A
- Child B
Item2
- Child A
- Child B
When Child A is created over and over it will have a number appended to the end. I need to know what the system created for the tag based on what I said to make tag so I can look up the last created item.
12-11-2020 04:52 PM
@flycast wrote:
Thank you. I am currently not setting the tag value but allowing the system to automatically set it. How do I retrieve the tag for the item I just created?
The output of "Add Item to End" is the tag if the item just created.
12-11-2020 04:56 PM
Sure enough! Thanks! That clears a lot up.