analyzergeek
Technical User
I'm not a professional programmer, however, I've been tasked with writing 3 small programs for an on-stream gas chromatograph using something the analyzer vendor calls MaxBasic, which is a subset of Visual Basic 3.0. After extracting data from two tables in a database as SnapShots, and decalring multiple variable arrays with ReDim(# To #) statements, I attemted to program math caculations using a For..Next operation to step through the objects in my table and do the math. For some reason, I'm getting the error, "Subscript Out of Range."
In the ReDim statements, I basically set a range from (1 To 14) after each of the variable names, because that is how many values that will be acted upon with the math calculations. I also Declared a Dim statement, Dim i = intNOP As Long: intNOP = arg0 'arg0 is the number of buffered results. I use this in the For...Next operation, (ex. For i = 1 + intNOP, Math Calculations, Next i) to do the math on all the values in the designated array.
Basically, I don't know enough to know why I'm getting this alarm and where to look. If anyone has seen this before and can give me some advice, I would certainly appreciate it.
Blessings to all!!
In the ReDim statements, I basically set a range from (1 To 14) after each of the variable names, because that is how many values that will be acted upon with the math calculations. I also Declared a Dim statement, Dim i = intNOP As Long: intNOP = arg0 'arg0 is the number of buffered results. I use this in the For...Next operation, (ex. For i = 1 + intNOP, Math Calculations, Next i) to do the math on all the values in the designated array.
Basically, I don't know enough to know why I'm getting this alarm and where to look. If anyone has seen this before and can give me some advice, I would certainly appreciate it.
Blessings to all!!