I am working with local cursors created from a SQL Server using the SQLEXEC command. Some records are not required and these are deleted. I have SET DELETED ON so that the deleted records do not show up. I have record mover buttons (First|Prev|Next|Last) to allow users to navigate between the records.
The code behind the buttons checks for BOF and EOF:
However, if the record pointer is on the first visible record, but the first actual record in the cursor has been marked for deletion and then BOF() = .f. and so the buttons remain enabled. Same goes for EOF().
Is there a way to check for BOF/EOF which ignores deleted records? Note that I cannot PACK my cursor to fully get rid of the deleted records as "Function is not supported on remote tables
The code behind the buttons checks for BOF and EOF:
Code:
IF BOF() = .t. THEN
* disable First and Prev buttons
ENDIF
IF EOF() = .t. THEN
* disable Next and Last buttons
ENDIF
Is there a way to check for BOF/EOF which ignores deleted records? Note that I cannot PACK my cursor to fully get rid of the deleted records as "Function is not supported on remote tables