<div>try it </div>
<div>ds.Tables["AddressBook"].Rows[0][1]<br>or</div>
<div>for dr in ds.Tables[AddressBook].Rows:<br> dr[1]<br> <br> </div>
<div><span class="gmail_quote">2007/4/26, kostas daglas <<a href="mailto:daglask@gmail.com">daglask@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">hi all ! this is my first post and i am new to database programming generally.<br>Anyway i would appreciate your help..
<br><br>i made an Addressbook table with 5 rows (myfriends!) and every row has items (name, surname etc.)i called it AddressBook.mdb<br><br>I made a form with a button and a TextBox contorl<br>i want to show when i click the button the first item of a given row in my textbox.
<br>i did:<br> con = OleDb.OleDbConnection()<br> ds = DataSet() <br> <br> <br> <br> con.ConnectionString = 'PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\AddressBook.mdb'
<br> con.Open()<br> sql = 'SELECT * FROM tblContacts' <br> <br> da=OleDb.OleDbDataAdapter(sql, con) <br> da.Fill(ds, "AddressBook")<br><br>in c# i could do :
<br> txtFirstName.Text = ds.Tables("AddressBook").Rows(0).Item(1) <br> how can i do that in IronPython? ( i tried it but : "DataTableCollection object is not callable.". )<br>
<br> Thanks in advance for your help ! <br><span class="sg"><br>Kostas<br><br><br><br></span><br>_______________________________________________<br>users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:users@lists.ironpython.com">
users@lists.ironpython.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>这两年来慢慢习惯了光说不练.