NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Two unexpected Locals variables when iterating over array of containers.

Solved!
Go to solution

Hi,

 

I iterate over an array of containers. In the ForEach loop step variables format I have defined two variables; one is current offset, second one is current element.

 

The loop works fine.

 

However, during the debug process, I've spotted two new Locals variables called __ElementSibling0 (type: number) and __ForEachReleaser0 (type: obj. reference) created silently by TS as soon as I start iterating over my array. What are they?

 

Do they exist because:

  1. I'm iterating over an array of containers, or
  2. I use  the _currentElement_Freq variable, or
  3. it always like that?

 

TS_NI  forum question.PNG

0 Kudos
Message 1 of 2
(4,380 Views)
Solution
Accepted by topic author MimiKLM

Those are used by the implementation of the For Each step. You can see them only because you have enabled the Show Hidden Properties setting.

 

You can safely ignore their presence.

0 Kudos
Message 2 of 2
(4,374 Views)