Index out of range !

I am trying to run a code and it keeps on giving me error message of  "G0058: index out of range" I know what it means! but I don't know how to fix this !

1 Answer


The error message should also give you the line and file number on which the error is occurring. If you have GAUSS 14 or newer, the text of the line number is a link that you can click which opens to the spot of the error.

Click in the margin to the left of the line numbers to place a breakpoint on the line of the error, then run the program under the debugger to that line and you can see the value of the variables at that point which should show the cause of the error.

You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy