in Python, "() " means a CALL, if you want a INDEX, try "[]" . <br><br>like this: <br><br> txtFirstName.Text = ds.Tables["AddressBook"].Rows[0].Item[1]<br><br><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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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>只要人间真情在, 何必在意路泥泞<br>时风日下,和谐需要靠暴力达到!!!