S
Steve Wasser
I posted this in the wrong forum, story of my life.
foreach (DataRow dr1 in MyTable1.Rows)
{
reg[count] = (float)dr1["REG"];
prem[count] = (float)dr1["PREM"];
die[count] = (float)dr1["DIESEL"];
eth[count] = (float)dr1["ETH"];
term[count] = reg[count]+prem[count]+die[count]+eth[count];
count++;
}
Results in specified cast is invalid. Do I have to box? I know I'm trying to
cram a ref into a val, but that's how SQL objects get retrieved.
Thanks,
foreach (DataRow dr1 in MyTable1.Rows)
{
reg[count] = (float)dr1["REG"];
prem[count] = (float)dr1["PREM"];
die[count] = (float)dr1["DIESEL"];
eth[count] = (float)dr1["ETH"];
term[count] = reg[count]+prem[count]+die[count]+eth[count];
count++;
}
Results in specified cast is invalid. Do I have to box? I know I'm trying to
cram a ref into a val, but that's how SQL objects get retrieved.
Thanks,