AnsweredAssumed Answered

Creating cursor inside or outside loop

Question asked by leo@eniig.dk on Oct 14, 2019
Latest reply on Oct 14, 2019 by leo@eniig.dk

Hi

 Here is my issue

 

If I create an insert cursor outside a for loop all inserted rows ends up with the same shape.

If I create the cursor inside the for loop i end up with the result that i expected

 

Sorry for code in image files, however this community editor seems to kill my indends

 

The first example the cursor is created outside the loop

 The result:

 

 

If i move the creation of the cursor inside the loop 

 

The result:

 

Why am I getting diffrent results? 

Outcomes