Ver Mensaje Individual
  #4  
Antiguo 04-09-2008
Avatar de ContraVeneno
ContraVeneno ContraVeneno is offline
Miembro
 
Registrado: may 2005
Ubicación: Torreón, México
Posts: 4.738
Reputación: 24
ContraVeneno Va por buen camino
Código Delphi [-]
with TuADOQuery do begin
 If active then close;
 SQL.Clear;
 SQL.Add('Select T.UnCampo, ''otro ''+T.OtroCampo');
 SQL.Add('From UnaTabla T');
 SQL.Add('Where T.ID = :ID');
 Parameters.ParamByName('ID').Value = UnEdit.Text;
 Open;
 Showmessage('Valor: '+FieldByName('UnCampo').AsString);
// First; 
 //While not EOF do begin
 //Showmessage('Valor: '+FieldByName('UnCampo').AsString);
 // Next;
 //end; //while
 //Close;
end; //with

Eso es un ejemplo de como utilizar un TADOQuery
__________________

Responder Con Cita