Skip to main content

Non-Integer Range Index

Erroneous Code Example

This error occurs when you use a non-integer value as an index in a range operation. In this example, the range index is a float value.

Solution

Use integer values for range indices or set variable types to integer types.