Compile, out of bounds error, question?

Can anyone explain why line 9 creates the compile error yet line 6 compiles error-free?

If results is a dataset with zero rows then the while block will never be executed to throw the error.

1 Like

I thought this wouldn’t be an error until runtime. I get it now though, thanks!

Putting the offending lines in if results.getRowCount() > 0: works. :cowboy_hat_face: