Thread View: borland.public.intrabuilder.forms
2 messages
2 total messages
Started by Jeremy Burges
Wed, 14 Oct 1998 00:00
Bookmark()
Author: Jeremy Burges
Date: Wed, 14 Oct 1998 00:00
Date: Wed, 14 Oct 1998 00:00
27 lines
1137 bytes
1137 bytes
I want my forms to display something like:
Record (2 of 65)
when the user navigates through the rowset.
This is easy if you start from the beginning or the end of a rowset, because
I can set
a currentRec variable either to 1 or the recordcount and increment or
decrement it for each navigation.
My problem is, how to find out which record I'm at if I've got there from an
applyLocate() call. If I set a bookmark using something like:
this.currentRec = form.rowset.bookmark()
and then
alert(''+this.currentRec)
I get a message displaying the word "BookMark" (including the
capitalisation).
Is there any way of getting at a record number value?
Any help would be appreciated
Jeremy Burges
Re: Bookmark()
Author: Ken Mayer [TeamB]
Date: Sun, 18 Oct 1998 00:00
Date: Sun, 18 Oct 1998 00:00
24 lines
1170 bytes
1170 bytes
"Jeremy Burges" <jburges@mktpoint.com> wrote: >I want my forms to display something like: > >Record (2 of 65) > >when the user navigates through the rowset. This requires that you have a value that can be used to display it -- the Objects used for record handling in IntraBuilder do not give access to the "recno" field of the .DBF, and if you're using any other table type, then the record number doesn't exist at all. Suggestion: either add a special field to your table or don't do it at all. (Bookmarks will not do what you want ...) Ken --- Ken Mayer [TeamB] Golden Stag Productions http://www.mindspring.com/~hirschv/homepage.htm http://www.mindspring.com/~hirschv/dbase/dbase.htm
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads