Walter Meester
HoogkarspelNetherlands
General information
Category:
Forms & Form designer
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,
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only