Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
QuestionDateTime to Int conversion and vice versa Pin
madhusri27-Sep-06 5:04
madhusri27-Sep-06 5:04 
AnswerRe: DateTime to Int conversion and vice versa Pin
Ed.Poore27-Sep-06 5:21
Ed.Poore27-Sep-06 5:21 
AnswerRe: DateTime to Int conversion and vice versa Pin
Nader Elshehabi27-Sep-06 5:23
Nader Elshehabi27-Sep-06 5:23 
QuestionMicrosoft Code Blocks? Pin
kumar.bs27-Sep-06 4:38
kumar.bs27-Sep-06 4:38 
AnswerRe: Microsoft Code Blocks? Pin
Nader Elshehabi27-Sep-06 5:03
Nader Elshehabi27-Sep-06 5:03 
GeneralRe: Microsoft Code Blocks? Pin
Judah Gabriel Himango27-Sep-06 6:06
sponsorJudah Gabriel Himango27-Sep-06 6:06 
AnswerRe: Microsoft Code Blocks? Pin
Michael P Butler27-Sep-06 6:30
Michael P Butler27-Sep-06 6:30 
Questionselect from a datatable Pin
playout27-Sep-06 4:26
playout27-Sep-06 4:26 
Hi,

I am trying to run a select query on a datatable.
The datatable holds information I get from an Access database.

My code:
<br />
            OleDbConnection myConn = new OleDbConnection();<br />
            myConn.ConnectionString = "Provider=Microsoft.JET.OLEDB.4.0;data source=" + DBPath;<br />
<br />
            OleDbCommand myCommand = new OleDbCommand();<br />
            myCommand.Connection = myConn;<br />
            myCommand.CommandText = "Select * from [tblMembers] where Active = false";<br />
            myCommand.CommandType = System.Data.CommandType.Text;<br />
            System.Data.DataTable myTable = new System.Data.DataTable("myTable");<br />
<br />
            OleDbDataAdapter myDataAdapter = new OleDbDataAdapter(myCommand);<br />
            myDataAdapter.Fill(myTable);


I have to query three columns in the datatable (MemberID, MemberLanguage, MemberName), and bind those info to the following variables:

intMemberID, strMemberLanguage, strMemberName

How can I do this?
AnswerRe: select from a datatable Pin
Nader Elshehabi27-Sep-06 4:37
Nader Elshehabi27-Sep-06 4:37 
GeneralRe: select from a datatable Pin
Not Active27-Sep-06 4:53
mentorNot Active27-Sep-06 4:53 
GeneralRe: select from a datatable Pin
playout27-Sep-06 19:53
playout27-Sep-06 19:53 
AnswerRe: select from a datatable Pin
Not Active27-Sep-06 4:51
mentorNot Active27-Sep-06 4:51 
GeneralRe: select from a datatable Pin
Nader Elshehabi27-Sep-06 4:59
Nader Elshehabi27-Sep-06 4:59 
GeneralRe: select from a datatable Pin
playout27-Sep-06 19:51
playout27-Sep-06 19:51 
GeneralRe: select from a datatable Pin
Not Active28-Sep-06 2:09
mentorNot Active28-Sep-06 2:09 
GeneralRe: select from a datatable Pin
playout27-Sep-06 19:56
playout27-Sep-06 19:56 
GeneralRe: select from a datatable Pin
Not Active28-Sep-06 2:11
mentorNot Active28-Sep-06 2:11 
QuestionAccess metod from thread Pin
Neuromancer_27-Sep-06 4:20
Neuromancer_27-Sep-06 4:20 
AnswerRe: Access metod from thread Pin
Nader Elshehabi27-Sep-06 4:34
Nader Elshehabi27-Sep-06 4:34 
QuestionHere's a free db connection object for all!! Any improvement ideas? Pin
Goalie3527-Sep-06 3:49
Goalie3527-Sep-06 3:49 
AnswerRe: Here's a free db connection object for all!! Any improvement ideas? Pin
Colin Angus Mackay27-Sep-06 5:41
Colin Angus Mackay27-Sep-06 5:41 
AnswerRe: Here's a free db connection object for all!! Any improvement ideas? Pin
Michael P Butler27-Sep-06 6:33
Michael P Butler27-Sep-06 6:33 
QuestionProgrammatically grouping taskbar buttons Pin
Wjousts27-Sep-06 3:40
Wjousts27-Sep-06 3:40 
AnswerRe: Programmatically grouping taskbar buttons Pin
Ed.Poore27-Sep-06 4:19
Ed.Poore27-Sep-06 4:19 
GeneralRe: Programmatically grouping taskbar buttons Pin
Wjousts27-Sep-06 5:10
Wjousts27-Sep-06 5:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.