Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append does not move down to next row
Message
From
12/12/1999 02:34:19
Walter Meester
HoogkarspelNetherlands
 
 
To
11/12/1999 07:49:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00302207
Message ID:
00302362
Views:
38
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
Map
View

Click here to load this message in the networking platform