|
DataSet.Table["TableName"].Rows[0][0]
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
Yes, and if you want to go even further it could be
DataSet.Table["TableName"].Rows[0]["ColumnName"]
or if strongly typed
DataSet.TableName.Rows[0].ColumnName
So your point was?
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: So your point was?
Probably this: "I can code better than you can. Nya nya, nyi nya nyaaaa!"
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
If it were you I'd admit it.
only two letters away from being an asset
|
|
|
|
|
C'mon! You're a Code Project MVP! You don't get that for nothing. It means you are great at what you do and you are great at spreading the greatness. (You don't think I over did the "great" thing there, did you?)
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
You're right, I am great at spreading something, but it usually comes from the posterior of a bull.
only two letters away from being an asset
|
|
|
|
|
You work on a farm! Gosh! You find Software Developers in every corner of society.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
Hi,
Who can help me to find a .Net Component that works like the MsWord(mean that it is a Advanced editor) and could load and save the .DOC files ?
best regards
A.Azmoodeh
|
|
|
|
|
A block of code is giving exception in Release mode--outside VS, but not in debug mode. Can you please tell what is the problem with my this method? How can i track the exception? Its running properly in the debug but i don't know what goes wrong in the Release mode.
int i = 0;
int res = BAD_RESULT;
try
{
vector<dataaccess::tagpartdiameterrecord> parts;
if (m_pDoc->doGetPartDiameters(parts))
{
for(i = 0; i < parts.size(); i++)
{
if (parts[i].PartDiameterLUT < 10.0 ) PartDiameterLUT[i]= 10.0;
if (parts[i].PartDiameterLUT > 120.0) PartDiameterLUT[i]= 120.0;
if (parts[i].RetractDistInches < 0.0) RetractDistInchesLUT[i]= 0.0;
if (parts[i].RetractDistInches < 40.0) RetractDistInchesLUT[i]= 40.0;
if (parts[i].JointTypeLUT < 0) JointTypeLUT[i]=(JointMode)0;
if (parts[i].JointTypeLUT > 3) JointTypeLUT[i ]=(JointMode)0 ;
}
res = GOOD_RESULT;
AfxMessageBox("GOOD_RESULT");
}
else
{
AfxMessageBox("Part Diameter Data could not be loaded1");
return BAD_RESULT;
}
}
catch(...)
{
AfxMessageBox("HERE IS THE EXCEPTION THAT IS THROWN");
return BAD_RESULT;
}
return res;
} // LoadDiameterLUT
Z.A
|
|
|
|
|
Dude - this is the C# forum. This code is C++/MFC.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
zubair_ahmed wrote: catch(...)
{
AfxMessageBox("HERE IS THE EXCEPTION THAT IS THROWN");
return BAD_RESULT;
}
Dude - if you catch an exception look at it instead of replacing it by
a meaningless constant string.
|
|
|
|
|
His code is C++, he doesn't get a meaningful exception object.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
|
are you using source safe for the project?
|
|
|
|
|
the folder could be in read only mode.
|
|
|
|
|
could also be a rights problem
|
|
|
|
|
Which version of .net are you trying it on?
|
|
|
|
|
If you read the previous part of the thread you'll see he's using MFC C++ and posted in the wrong forum.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
First off, you're talking to yourself. You're the only one getting notifications that you replied, to yourself.
Second, none of what you said is applicable to the OP's problem, because he's using C++/MFC, not C# or the .NET Framework.
|
|
|
|
|
Please, please, please, stop it.
You should respond to the question sender not to an answere.
And don't create so many posts, modify your original psot if you have additional ideas.
All the best,
Martin
|
|
|
|
|
Hello!
I want to know wether current position of cursor in a textbox is the last, how do I achieve this?
/Regards
|
|
|
|
|
The SelectionStart property gives you the cursor pos, the Text.Length property gives you the length of the string.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
TextBox.SelectionStart==TextBox.TextLength
|
|
|
|
|
I want to know wether current position of cursor in a textbox is the last, how do I achieve this?
/
|
|
|
|