Cesar C. Salazar Gonzalez Master


Registrado: 01 Oct 2002Mensajes: 2155Ubicación: San Cristóbal de Las Casas, Chiapas
|
Publicado: Sab 22 Nov, 2003 7:29 am Asunto: |
|
|
Unicamente con el metodo post(), vacias el buffer, al igual que se hace en clipper
con los comados Commit o DBCommit()
aun que buscando en la ayuda de Bcb 6 encontre el siguiente codigo
| Código: |
The following procedure illustrates how to apply a dataset’s cached updates to a database in response to a button click:
void __fastcall TForm1::ApplyButtonClick(TObject *Sender)
{
Database1->StartTransaction();
try
{
CustomerQuery->ApplyUpdates(); // try to write the updates to the database
Database1->Commit(); // on success, commit the changes;
}
catch (...)
{
Database1->Rollback(); // on failure, undo the changes
throw; // throw the exception to prevent a call to CommitUpdates!
}
CustomerQuery->CommitUpdates(); // on success, clear the cache
} |
pero es para el componete database, es decir, grabas toda la informacion de las tablas habiertas en ese momento, solo en la tabla, puedes usar Post().
Espero haberte ayudado... _________________
 |
|