Start the indices with the number 1

unhandled

(Sonny Weaver) #1

Hallo community,

is there a way to start indeces with 1 and not with the 0?

Thanks in advance


#2

Yes:

for (var i = 1; i <= list.Count; i++)
{
   var item = list[i-1];  
}

:wink:

// Rolf


(Sonny Weaver) #3

many thanks mr RIL