BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Position cursor

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Michael Qua
Guest





PostPosted: Mon Aug 02, 2004 4:41 am    Post subject: Position cursor Reply with quote



Hi, I have a grid to allow users to select which record they want to
edit. The query would reset when the edit is posted and the cursor
would be on the first record of the query. How do I position the cursor
on the just edited record? I'm currently using locate but it's a bit
slow. I'm using D6 IB6. Thanks

Michael Qua
Back to top
George Christoforakis
Guest





PostPosted: Mon Aug 02, 2004 11:36 am    Post subject: Re: Position cursor Reply with quote



use the BookMark. It should do the trick.
George Christoforakis.

"Michael Qua" <michaelsyqua (AT) yahoo (DOT) com> wrote

Quote:
Hi, I have a grid to allow users to select which record they want to
edit. The query would reset when the edit is posted and the cursor
would be on the first record of the query. How do I position the cursor
on the just edited record? I'm currently using locate but it's a bit
slow. I'm using D6 IB6. Thanks

Michael Qua



Back to top
Michael Qua
Guest





PostPosted: Tue Aug 03, 2004 1:27 am    Post subject: Re: Position cursor Reply with quote



Thanks for reply, I'll give it a try.

George Christoforakis wrote:

Quote:
use the BookMark. It should do the trick.
George Christoforakis.

"Michael Qua" <michaelsyqua (AT) yahoo (DOT) com> wrote in message
news:410dc195 (AT) newsgroups (DOT) borland.com...

Hi, I have a grid to allow users to select which record they want to
edit. The query would reset when the edit is posted and the cursor
would be on the first record of the query. How do I position the cursor
on the just edited record? I'm currently using locate but it's a bit
slow. I'm using D6 IB6. Thanks

Michael Qua




Back to top
Michael Qua
Guest





PostPosted: Tue Aug 03, 2004 3:27 am    Post subject: Re: Position cursor Reply with quote

Hi, two questions
1. Will it work if I have to close the query? (Or maybe theres a way to
reflect the edit without closing and openning the query, refresh doesn't
always work)
2. Will it be faster than Lookup or FindKey?
Thanks

George Christoforakis wrote:

Quote:
use the BookMark. It should do the trick.
George Christoforakis.

"Michael Qua" <michaelsyqua (AT) yahoo (DOT) com> wrote in message
news:410dc195 (AT) newsgroups (DOT) borland.com...

Hi, I have a grid to allow users to select which record they want to
edit. The query would reset when the edit is posted and the cursor
would be on the first record of the query. How do I position the cursor
on the just edited record? I'm currently using locate but it's a bit
slow. I'm using D6 IB6. Thanks

Michael Qua




Back to top
George Christoforakis
Guest





PostPosted: Tue Aug 03, 2004 10:40 am    Post subject: Re: Position cursor Reply with quote

1) good question, I haven't tried it...
2) yes, as far as i'm concerned bookmark is fast, but I haven't compared it
across the commands you mention. Bookmark keeps a pointer to the record
(roughly speaking), and it would be faster than using commands that search
in the table-i think so-...

George Christoforakis.

"Michael Qua" <michaelsyqua (AT) yahoo (DOT) com> wrote

Quote:
Hi, two questions
1. Will it work if I have to close the query? (Or maybe theres a way to
reflect the edit without closing and openning the query, refresh doesn't
always work)
2. Will it be faster than Lookup or FindKey?
Thanks





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.