Updating an array

SED

New Member
I am getting an error,

ERROR [HY000] [DataDirect][ODBC PROGRESS driver][PROGRESS]Array reference/update incorrect. (7888)

I am trying to create an array and insert it in to the required field and recieve this error. The array is created from taking 15 variables from 15 textboxs and adding ";" between each variable.

Here is a look at the code to do this,

string total = "";
string t = "";
string[] totalArray = new string[1];
string Day1 = txtDay1.Text;
string Day2 = txtDay2.Text;
string Day3 = txtDay3.Text;
string Day4 = txtDay4.Text;
string Day5 = txtDay5.Text;
string Day6 = txtDay6.Text;
string Day7 = txtDay7.Text;
string Day8 = txtDay8.Text;
string Day9 = txtDay9.Text;
string Day10 = txtDay10.Text;
string Day11 = txtDay11.Text;
string Day12 = txtDay12.Text;
string Day13 = txtDay13.Text;
string Day14 = txtDay14.Text;
string Day15 = txtDay15.Text;
// string Day16 = txtDay16.Text;
total = (Day1 + ";" + Day2 + ";" + Day3 + ";" + Day4 + ";" +
Day5 +
";" + Day6 + ";" + Day7 + ";" + Day8 + ";" +
Day9 +
";" + Day10 + ";" + Day11 + ";" + Day12 + ";" +
Day13 +
";" + Day14 + ";" + Day15);


for (int i = 0; i < totalArray.Length; i++)
totalArray = total;
for (int i = 0; i < totalArray.Length; i++)
t = totalArray +
"";

txtHrs.Text = t;

I am at the piont to where I don't know what to look for or try next. Does anyone have any suggestions.

 
Comment out some code and try to get to the exact line that's causing the issue. Simplify the statement thats causing the error and see if you have a workaround solution.

HTH
 
Comment out some code and try to get to the exact line that's causing the issue. Simplify the statement thats causing the error and see if you have a workaround solution.

HTH

From the awesomeness of Progress Debugging :) I like that too!
 
Back
Top