Using PreviousDatabaseRow()
Posted: Wed Jul 23, 2003 6:49 pm
Still learning how to use the database features of PB.
Every effort to use PreviousDatabaseRow() returns a value of 0 rather
than positioning back to the previous row.
Code snip..
While NextDatabaseRow() works perfectly, the PreviousDatabaseRow()
always returns a value of 0 even though there should be numerous
previous rows to back up through.
Has anybody experienced this? Any suggestions?
Thanks,
Terry
Every effort to use PreviousDatabaseRow() returns a value of 0 rather
than positioning back to the previous row.
Code snip..
Code: Select all
Case #NextButton
Num = NextDatabaseRow()
If Num
NextRecord() ; procedure to handle the record
Else
DisableGadget(#NextButton,1)
EndIf
Case #PrevButton
Num = PreviousDatabaseRow()
If Num
PrevRecord() ; procedure to handle the record
Else
DisableGadget(#PrevButton,1)
EndIf
always returns a value of 0 even though there should be numerous
previous rows to back up through.
Has anybody experienced this? Any suggestions?
Thanks,
Terry