Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/05/2006, 10:18
Emerald
 
Fecha de Ingreso: mayo-2006
Mensajes: 243
Antigüedad: 18 años, 9 meses
Puntos: 0
Pregunta Operador lógico AND

Hola a todos!

Tengo un problema con el siguiente código:

Código:
int vRamo = Convert.ToInt32(this.ddlRamo.SelectedValue);
int vCategoria = Convert.ToInt32(this.ddlCategoria.SelectedValue);
string vPClave = this.txtPClave.Text;

if (vRamo!= 1 && vCategoria=1 && vPClave=null)
{
    vTipo = 1;
}
El error es: Operator '&&' cannot be applied to operands of type 'bool' and 'int'



agradezco su ayuda!