Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/11/2009, 10:29
dubiweb
 
Fecha de Ingreso: octubre-2008
Mensajes: 122
Antigüedad: 16 años, 3 meses
Puntos: 7
Respuesta: Equivalencia en C#

este es el codigo que tengo y en c# 2003 no me admite this.xpTextBox5.Text = .Item("nombreDepartamento"); no como ponerlo

try
{

this.Hide();
ira.ShowDialog();
this.Show();
this.xpTextBox4.Text = ira.llevar;

objConex = new OleDbConnection();
objConex.Open();
cadSql = "Select * from empleados where(NumTrabajador= '" + this.xpTextBox4.Text + "')";
objComan = new OleDbCommand(cadSql, objConex);
Lector = objComan.ExecuteReader();

if(Lector.Read()){

//this.xpTextBox5.Text = .Item("nombreDepartamento");
this.xpTextBox5.Text = "bobo";

}


}
catch(System.Exception ex){
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,MessageBoxIcon.Error);

}