Ver Mensaje Individual
  #3  
Antiguo 20-10-2005
[maeyanes] maeyanes is offline
Capo de los Capos
 
Registrado: may 2003
Ubicación: Campeche, México
Posts: 2.732
Reputación: 24
maeyanes Va por buen camino
Hola...

Para verificar el estado de una variable booleana solo tienes que hacer:

Código Delphi [-]
if chkTodo.Checked then
  // Checked es verdadero
  strCondicion := 'where MATERIAL_DET.MAT_CANTIDAD > 0 ORDER BY MATERIAL_DET.MAT_ID'
else
  // Checked es falso
  strCondicion := 'where (MATERIAL.M_NOMBRE like ''%' + edtMatPrima.Text + '%'')';
  // También podrías usar:
  strCondición := 'where (MATERIAL.M_NOMBRE like ' + QuotedStr('%' +
    edtMatPrima.Text + '%') + ')';

Ahora, sobre el error, ¿exactamente en que línea se da este?


Saludos...
Responder Con Cita