Ver Mensaje Individual
  #3  
Antiguo 02-12-2015
Avatar de Osorio
Osorio Osorio is offline
Miembro
 
Registrado: may 2003
Ubicación: Colombia
Posts: 251
Reputación: 22
Osorio Va por buen camino
Lo mas probable es que con un refresh te funcione correctamente.




Código Delphi [-]
SQL := 'SELECT TipoListaPrecio ' +
         'FROM dbo.CAJAS ' +
         'WHERE Serie =1';

  Query.SQL.Clear;
  Query.SQL.Add(SQL);



  Query.Parameters.Refresh;   //Luego de esta linea debe ir todo bien. 


//  Query.Parameters.ParamByName('p1').Value := DataRegistro;  // 'Query: Parameter not found'
//  SQL := Query.Parameters[0].Name;                                     // aca solo utilizo la variable SQL (string) para ver si me devuelve el nombre del parametro ubicado en esa posicion  pero me coloca ''
//  I := Query.Parameters.Count;
Responder Con Cita