AnsweredAssumed Answered

How to clear repeating variables

Question asked by mark_b on May 3, 2018
Latest reply on May 3, 2018 by philmodjunk

I'm trying to clear out 100s of repeating variables (Set by CustomList CF) so the data viewer doesn't have to refresh all those values - taking over 1 minute per debugger script step. I tried using the recursive custom function on Brian Dunning's site but it didn't work, probably because the repeating fields are not contiguous and I have no idea what the maximum repetition is. So the only way I can think is to use a loop.

Here's where I'm stuck.

Set Variable $i = 1


    If [not IsEmpty ($CLRemainder[$i] ) ]

        Set Variable [ $CLRemainder[$i]; value: "" ]  --->This is what I would like to do, but FM doesn't like the syntax.


      //Increment blank field counter to exit loop if more than 125 empty fields

    End If

    Set Variable [ $i = $i + 1 ] 

End Loop


Does anyone have a way to clear a bunch of repeating, non-contiguous variables?

Thanks for the help.