Node:find-previous-text-no, Next:, Previous:find-next-text-no, Up:Protocol Requests



find-previous-text-no [61] (3) Recommended


        find-previous-text-no [61] ( start : Text-No )
                -> ( Text-No );

This call returns the first readable text in the database created most recently before start. start does not have to be a valid or readable text number, as shown in the examples.

Example:

        1 61 134217727
        =1 11
        1 61 4
        =1 2

This example shows that the last readable text in the database is number 11 (unless by some odd coincidence all text from 11 to text number 134217727 have been deleted.) It also shows that the most recent text before number 4 is text number 2.

Error codes

no-such-text
There is no text preceding text start.