dbTalk Databases Forums  

Form event when current record changes

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Form event when current record changes in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
harry
 
Posts: n/a

Default Form event when current record changes - 12-21-2004 , 04:13 PM






I am a MSAccess programmer and an occasional Visual Foxpro programmer.
I need to create an event in a VFP form each time the current record
changes (like the CURRENT event in Access). Any suggestions would be
appreciated.


Reply With Quote
  #2  
Old   
Rick Bean
 
Posts: n/a

Default Re: Form event when current record changes - 12-21-2004 , 05:58 PM






Harry,
Are these "changes" data changes? Locally or Remotely? Or are you talking about row (record) changes?

What version and SP of VFP are you using? Are these free tables or in a database?

Rick

"harry" <harry (AT) sandh (DOT) com> wrote

Quote:
I am a MSAccess programmer and an occasional Visual Foxpro programmer.
I need to create an event in a VFP form each time the current record
changes (like the CURRENT event in Access). Any suggestions would be
appreciated.


Reply With Quote
  #3  
Old   
harry
 
Posts: n/a

Default Re: Form event when current record changes - 12-23-2004 , 08:03 AM



Rick,

I guess I phrased the question poorly. The "current record change" I
referred to does not mean that the record is changed or edited by a
user or program, but rather that a new or different record is displayed
by the form as a result of some action moving the record pointer in the
underlying recordset. The "current event" normally would fire when
a)the form is opened and a record is displayed b)the current record is
changed from the toolbar c)the user invokes a search which locates a
new record. I realize that I could try to enumerate all the actions
that cause the record pointer to move and call an appropriate routine
from each, but I was hoping there was one consolidated event provided
by Foxpro that would take care of this.
I am using V6 of Foxpro and the tables are in a database.


Reply With Quote
  #4  
Old   
Stefan Wuebbe
 
Posts: n/a

Default Re: Form event when current record changes - 12-27-2004 , 03:42 AM



Hi Harry,

"harry" <harry (AT) sandh (DOT) com> schrieb im Newsbeitrag
news:1103810597.259641.168950 (AT) f14g2000cwb (DOT) googlegroups.com...
Quote:
Rick,

I guess I phrased the question poorly. The "current record change" I
referred to does not mean that the record is changed or edited by a
user or program, but rather that a new or different record is displayed
by the form as a result of some action moving the record pointer in the
underlying recordset. The "current event" normally would fire when
a)the form is opened and a record is displayed b)the current record is
changed from the toolbar c)the user invokes a search which locates a
new record. I realize that I could try to enumerate all the actions
that cause the record pointer to move and call an appropriate routine
from each, but I was hoping there was one consolidated event provided
by Foxpro that would take care of this.
No, the VFP data engine does not provide a native "record pointer
moved" event. You can "encapsulate" VFP cursors / aliases by using
private datasessions though, and that way get a similar effect.


hth
-Stefan



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.