Re: Toolbar
From: Gerben Kessen (gerben.kessen(_at_)wantit.nl)
Date: 08/06/04
- Next message: Fred Taylor: "Re: Visual SourceSafe with VFP8"
- Previous message: Ook: "Re: VFP stability"
- In reply to: Cowboy: "Toolbar"
- Next in thread: Tim Witort: "Re: Toolbar"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 6 Aug 2004 17:18:21 +0200
Cowboy,
There is no FIRSTREC() and LASTREC() function, of course you can make them
yourself but you have to leave the record to determine the last and first
record.
- When there is no filter and no index you can use the reccount() function
the determine the last record
- or you can make two variables with the first and last record numbers, but
you have to update them with every new record etc...
IMO, the best way is to move the recordpointer and test on eof()....
IF EOF()
llLast = .t.
ELSE
SKIP 1
IF EOF()
llLast = .t.
ENDIF
SKIP -1
ENDIF
IF llLast
MESSAGEBOX("this is the last record")
ENDIF
Gerben Kessen
"Cowboy" <Cowboy@discussions.microsoft.com> wrote in message
news:C76E5DB6-DEB7-4EDC-8523-9023352CA04F@microsoft.com...
> I have added a table navigational tool to a form. (My first experience at
> this). Is there an easier way to determine the first and last record of
the
> table other than go top and go bottom. I dislike leaving the current
record
> to determine those records. I want them to inform the user he is at the
top
> or bottom of the table rather than wait for a bof() or eof(), etc.
>
> TIA
- Next message: Fred Taylor: "Re: Visual SourceSafe with VFP8"
- Previous message: Ook: "Re: VFP stability"
- In reply to: Cowboy: "Toolbar"
- Next in thread: Tim Witort: "Re: Toolbar"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|