AnsweredAssumed Answered

Why does array variable fail in Extend Found Set

Question asked by disabled_dbail22@comcast.net on Jan 1, 2018
Latest reply on Jan 3, 2018 by wimdecorte

I have a search routine that allows choices of what data to use by way of a check box array.  I am wondering why this fails where the $Item[$n] array is used in the Extend Found Set [Restore]

 

Set Variable [ $n ; Value: 1 ]

Loop

    Exit Loop If [ $Item[$n] = "" ]

        Extend Found Set [ Restore ]

    Set Variable [ $n ; Value: $n + 1 ]

End Loop

 

And this works if the array variable is changed to a local array and then used in the Extend Found Set [Restore]

 

Set Variable [ $n ; Value: 1 ]

Loop

    Exit Loop If [ $Item[$n] = "" ]

        Set Variable[$Temp;Value: $Item[$n]]

        Extend Found Set [ Restore ]

    Set Variable [ $n ; Value: $n + 1 ]

End Loop

 

This is just one extra step but I cannot find any information on why the first way fails to find any records and the second way finds the correct records. Both methods show the proper variable in the Data Viewer before the step is executed.

 

David

Outcomes