Walter Meester
HoogkarspelPays-Bas
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Power,
>I have a table in a grid, in the last column of that grid, after the user presses the Enter key, it will do:
>append blank
>It allows the user to enter a new record in next row, then at the end of that row, the user press Enter again, it should do the Append blank again. But this time, the cursor will move to the first column of the same row but not move down into the next row.
>Then I tried to add a button to do the 'Append Blank' manually when clicked, but an error occured 'file is in use by another user.'
>I have set the table into buffermode 5 by:
>=cursorsetprop("buffering",5,"table")
>What should we do?
Probably you have some validation on a column, field or row. The trick is to get the focus off the grid (making the validation to fire), Append a new record, and set the focus on the grid again. Example:
- THISFORM.DummyTextBox.SetFocus
- APPEND BLANK
- THISFORM.MyGrid.Column1.SetFocus
Good luck,
Walter,
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement