Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionGetting my program to look up UK addresses from postcodes... How? Pin
Red_Wizard_Shot_The_Food5-Oct-05 12:15
Red_Wizard_Shot_The_Food5-Oct-05 12:15 
QuestionPainting in a Panel Pin
Red Tricycle5-Oct-05 11:18
Red Tricycle5-Oct-05 11:18 
AnswerRe: Painting in a Panel Pin
Heath Stewart5-Oct-05 11:46
protectorHeath Stewart5-Oct-05 11:46 
GeneralRe: Painting in a Panel Pin
Red Tricycle5-Oct-05 20:02
Red Tricycle5-Oct-05 20:02 
QuestionCreate custom Calendar Pin
Gywox5-Oct-05 11:09
Gywox5-Oct-05 11:09 
QuestionFile name validation Pin
baronics5-Oct-05 10:29
baronics5-Oct-05 10:29 
AnswerRe: File name validation Pin
David Stone5-Oct-05 11:06
sitebuilderDavid Stone5-Oct-05 11:06 
QuestionHow to get datarow from OdbcDataReader? Pin
Ming Luo5-Oct-05 9:56
Ming Luo5-Oct-05 9:56 
Hi all!
I am writing an windows application using MySQL as the source database. Can anybody tell me how to get the datarow when I select some specified rows from the database please? I try to use the following way to do that, but it doesn't work:
<br />
  string commandtext = "select * from machine where price = 100;";<br />
  OdbcCommand command = new OdbcCommand(commandtext, connection);<br />
  OdbcDataReader reader = command.ExecuteReader();<br />
  ArrayList row = new ArrayList();<br />
  int i = 0;<br />
  while (reader.Read())<br />
  {<br />
     row.Add((DataRow) reader.GetValue(i++);<br />
  }<br />
  reader.Close();<br />

Could anybody tell me how to solve this please!!!
Thanks in advance!!!

Asura
AnswerRe: How to get datarow from OdbcDataReader? Pin
Wjousts5-Oct-05 10:10
Wjousts5-Oct-05 10:10 
AnswerRe: How to get datarow from OdbcDataReader? Pin
Guffa5-Oct-05 10:20
Guffa5-Oct-05 10:20 
Questionforms Pin
xilefxilef5-Oct-05 8:40
xilefxilef5-Oct-05 8:40 
AnswerRe: forms Pin
Heath Stewart5-Oct-05 9:19
protectorHeath Stewart5-Oct-05 9:19 
QuestionWindow Handles and Mouse Clicks Pin
budidharma5-Oct-05 8:28
budidharma5-Oct-05 8:28 
AnswerRe: Window Handles and Mouse Clicks Pin
Heath Stewart5-Oct-05 8:35
protectorHeath Stewart5-Oct-05 8:35 
GeneralRe: Window Handles and Mouse Clicks Pin
budidharma5-Oct-05 8:42
budidharma5-Oct-05 8:42 
GeneralRe: Window Handles and Mouse Clicks Pin
budidharma6-Oct-05 6:57
budidharma6-Oct-05 6:57 
Questionhow handle objects and code of setup forms? Pin
Anonymous5-Oct-05 8:26
Anonymous5-Oct-05 8:26 
QuestionAccessing dBase files with C# Pin
TheMajorRager5-Oct-05 8:02
TheMajorRager5-Oct-05 8:02 
AnswerRe: Accessing dBase files with C# Pin
Heath Stewart5-Oct-05 9:15
protectorHeath Stewart5-Oct-05 9:15 
GeneralRe: Accessing dBase files with C# Pin
TheMajorRager5-Oct-05 11:37
TheMajorRager5-Oct-05 11:37 
AnswerRe: Accessing dBase files with C# Pin
Heath Stewart5-Oct-05 11:40
protectorHeath Stewart5-Oct-05 11:40 
GeneralRe: Accessing dBase files with C# Pin
TheMajorRager5-Oct-05 12:14
TheMajorRager5-Oct-05 12:14 
GeneralRe: Accessing dBase files with C# Pin
TheMajorRager5-Oct-05 13:54
TheMajorRager5-Oct-05 13:54 
Questioncheckbox ques Pin
ter815-Oct-05 7:13
susster815-Oct-05 7:13 
GeneralRe: checkbox ques Pin
Guffa5-Oct-05 8:57
Guffa5-Oct-05 8:57 

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.