Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Tablas planas (https://www.clubdelphi.com/foros/forumdisplay.php?f=20)
-   -   Como hacer que se limpie genere un nuevo registro en un formulario (https://www.clubdelphi.com/foros/showthread.php?t=37057)

difesa 01-11-2006 04:41:19

Como hacer que se limpie genere un nuevo registro en un formulario
 
Hola a todos, estoy desarrollando una aplicacion en delphi 5 con base de datos en paradox, he utilizado el wizard para crear formularios a partir de una tabla hecha en paradox, sin embargo cuando se abre el formulario, aparece en el mismo registro siempre, es decir, que nunca pasa del mismo registro, como hacer para que grabe el registro y limpie el formulario y quede listo para el próximo registro sin necesidad de darle el boton "+" para agregarlo?

roman 01-11-2006 05:14:25

Al momento de abrir el formulario usa Table1.Append o Table1.Insert. Esto básicamente hace lo mismo que el botón + (del dbnavigator, supongo que hablas).

// Saludos

Lepe 01-11-2006 15:07:49

¿Tienes claves primarias? Deberías ;).

Cita:

Empezado por Ayuda de delphi
Table1.Insert:
For Paradox tables with primary indexes, the record is inserted into the dataset in a position based on its index.
For Paradox tables without primary indexes, the record is inserted into the dataset at the current position.

Table1.Append:
For indexed Paradox and dBASE tables, the record is inserted into the dataset in a position based on its index.
For unindexed Paradox and dBASE tables, the record is added to the end of the dataset.

Saludos


La franja horaria es GMT +2. Ahora son las 17:17:06.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi