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 !
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.