Ver Mensaje Individual
  #2  
Antiguo 23-01-2007
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Reputación: 29
Lepe Va por buen camino
Pues no, lo que si será complejo es crear las cajas en el rave

Código Delphi [-]

var strSelect : TstringList;
begin
 if checkbox1.checked then
    strselect.add('campo1');
 if checkbox2.checked then
    strselect.add('campo2');
 if checkbox3.checked then
    strselect.add('campo3');

query1.sql.text := ' select ' + strselect.commatext + ' from tabla';
query1.open;

Saludos
__________________
Si usted entendió mi comentario, contácteme y gustosamente,
se lo volveré a explicar hasta que no lo entienda, Gracias.
Responder Con Cita