Hi All,
Consider a scenario where ,I am looping on an array of 100 values.
I got the value which i was looking at the index of 20 . then i need set 2 variables with predefined values and skip rest of the looping in for each.
Could you please let me know if it is possible ? sample code is really appreciated .
Thanks in advance
Raj
Discussion posts and replies are publicly visible
If I understand the question properly, Im assuming that you want to update an array where a particular value has been set.
If thats the case then you can do something like:
updatearray( ri!myArray, wherecontains( ri!valueToUpdate, ri!myArray ), ri!myNewValue )
Else, if you are just trying to update at index 20, then you can do:
updatearray( ri!myArray, 20, ri!myNewValue )