Ver Mensaje Individual
  #2  
Antiguo 25-01-2011
bitbow bitbow is offline
Miembro
 
Registrado: jul 2006
Posts: 366
Reputación: 18
bitbow Va camino a la fama
por que Params?

Saludos, tengo ya algun tiempo con delphi y mi pregunta es por que params?
no digo que no los uses si no que mi duda es que diferencia hay entre pasarle la variable directamente y usar params.

Bueno se que no ayuda mucho otra pregunta, pero es para aprovechar la tuya y bueno esa seria una solucion.

Código Delphi [-]
  With tArticulos Do
    Begin
      If Active Then
        Active := FALSE;

      With DataSet Do
        Begin
          CommandText := 'select CODIGO, DESCRIPCION FROM ARTICULOS WHERE ( CODIGO = '''+ sArticulo +''' ) ORDER BY CODIGO';
        End;

      Active := TRUE;
    End;
Responder Con Cita