Cita:
Empezado por gescoto99
como enlazo ese objeto para que pueda modificar las celdas de el Tdbgrid ?
|
De la ayuda de Delphi:
Cita:
In practical application, a TIBUpdateSQL object is placed on a data module or form, and linked to a TIBQuery component through that component’s UpdateObject property. If the UpdateObject property points to a valid TIBUpdateSQL object, the SQL statements belonging to the update object are automatically applied when cached updates are applied.
|
En tu caso usarías la propiedad ModifySQL del objeto TIBUpdateSQL.
De la ayuda de Delphi:
Cita:
Set ModifySQL to the SQL UPDATE statement to use when applying an updated record to a dataset. Statements can be parameterized queries. To create a UPDATE statement at design time, use the UpdateSQL editor to create statements, such as:
update Employee
set Last_Name = :Last_Name
where Emp_No = :OLD_Emp_No
At run time, an application can write a statement directly to this property to set or change the UPDATE statement.
Note: As the example illustrates, ModifySQL supports an extension to normal parameter binding. To retrieve the value of a field as it exists prior to application of cached updates, the field name with ‘OLD_’. This is especially useful when doing field comparisons in the WHERE clause of the statement.
|
Observación: yo tampoco conozco las componentes IB, simplemente estoy buscando en la ayuda de Delphi, cosa que te invito a hacer tú mismo.
// Saludos