>I am getting "Nesting error" that points to ENDFOR.
>What kind of problem would be related to that?
>In the loop I am inserting a value into a cursor. That's all.
>
>Thanks
Usually it means you somehow exceed the recursion level. Do you call this function as a recursive function? Can you show some code related to the problem? Also are you calling it from When or Valid event?
If it's not broken, fix it until it is.
My Blog