>I mean like a navigation button on the form sort of like the ones that are included automatically when you use the form wizard, except I don't want the Next button to disable at the last entry, I want it to skip back to the first one
nextbutton.click:
sele (tablename)
skip 1
If EOF()
go top
endif
thisform.refresh
prevbutton.click:
sele (tablename)
If BOF()
go bottom
else
skip -1
endif
thisform.refresh
The difference in the two code snippets is due to the fact that EOF returns true when the record pointer is past the last record, but BOF actually IS the first record.
BTW, keep in mind that some overly click-happy users may wonder why the list which should be 10 items seems 15, 20, 30+ items long. (they might not be paying attention enough to realize the list is circular- which is one reason most nav buttons are disabled when the user reaches the end of the list in either direction)