S
Scott
Ok, I've lost half a day to pounding my head against this one and I'm
sending out a distress call...
This is so simple that it's emberassing. However, VC# 2005 Express has
made things so monkey-proof that they made it hard to find out how to do
the simple things that don't have drag&drop tools.
This is the code in the sample that is being used to access an .mdb file:
********************
foreach (System.Data.DataRow theRow in ds.Tables["BackChat"].Rows)
{
if (sCommand == theRow["Command"].ToString())
{
string sResponse = theRow["Response"].ToString();
string sAction = theRow["Action1"].ToString();
if (sResponse != "")
{ ///////////// Do things here...
********************
It's out of the "BackChat" sample for SAPI5.1, if you're familiar with it.
Here are the issues (yea, I have issues! lol) :
All sorts of variants using my own dataSet are failing me. No matter what
I do, the best I can get it to return is the sting of the Row header, not
the contents of the cells themselves.
I've tried so many that I can't even remember them anymore... the brain is
cooked and it's time to take a break because I'm only going backward.
What I need to do is simply compare all the values listed in the "Command"
column to see if they match a var. As far as I know, this is best
approached with a foreach ().
NOTE: There is no graphical, clickable way to set the databinding to a
specific row because there is no control to bind it to!!! If there were
such a control involved here, I'd be long past this point by now.
Anyone with SpSharedRecoContext() experience should understand where I'm
stuck in a microsecond. If you understand how to use that, or how to find
specific entries in your .mdf based dataSet without using the graphical
tools, I'd sure appreciate your advice.
Thanks!
Scott
sending out a distress call...
This is so simple that it's emberassing. However, VC# 2005 Express has
made things so monkey-proof that they made it hard to find out how to do
the simple things that don't have drag&drop tools.
This is the code in the sample that is being used to access an .mdb file:
********************
foreach (System.Data.DataRow theRow in ds.Tables["BackChat"].Rows)
{
if (sCommand == theRow["Command"].ToString())
{
string sResponse = theRow["Response"].ToString();
string sAction = theRow["Action1"].ToString();
if (sResponse != "")
{ ///////////// Do things here...
********************
It's out of the "BackChat" sample for SAPI5.1, if you're familiar with it.
Here are the issues (yea, I have issues! lol) :
All sorts of variants using my own dataSet are failing me. No matter what
I do, the best I can get it to return is the sting of the Row header, not
the contents of the cells themselves.
I've tried so many that I can't even remember them anymore... the brain is
cooked and it's time to take a break because I'm only going backward.
What I need to do is simply compare all the values listed in the "Command"
column to see if they match a var. As far as I know, this is best
approached with a foreach ().
NOTE: There is no graphical, clickable way to set the databinding to a
specific row because there is no control to bind it to!!! If there were
such a control involved here, I'd be long past this point by now.
Anyone with SpSharedRecoContext() experience should understand where I'm
stuck in a microsecond. If you understand how to use that, or how to find
specific entries in your .mdf based dataSet without using the graphical
tools, I'd sure appreciate your advice.
Thanks!
Scott