Homework in Foxpro?
The simplest would perhaps be to use the Wizard (menu: file->new, choose form, click wizard) and let it generate a form. It's even somewhat maintainable, but you inherit quite some code from ffc (foxpro foundation classes).
The next easiest thing to do is create a new form (saame menu:file->new, choose form, but click "new file") and put the table or tables you want to edit into the dataenvirnment of the form. (menu: View, select Data Environment)
The first time you open the dataenvironment, you're prompted to choose a table.
Drag a field from the table(s) you put into the datenvironment to the form. Repeat for othe fields. Drag a whole table on the form and you get a grid control.
All neccessary things to display data editable are there.
Start the form via the standard toolbar ! button.
That's it.
You can now add buttons for navigating to top, bottom, next or previous record in the table. with the following codes:
go top botton: GO TOP
go bottom button: GO BOTTOM
next button: SKIP 1
previous button: SKIP -1
You will find out that SKIP -1 leads to an error, if you are already at the top, but you can check, if BOF() is true, which tests for "begin of file". Same goes for EOF() at the "end of file".
Bye, Olaf.