Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding to record pointer move in cursor???
Message
From
13/10/2014 15:10:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
13/10/2014 11:30:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01609233
Message ID:
01609264
Views:
71
>Is there any way at all to use BindEvent to hook into the record pointer getting moved in a cursor?
>
>This is not a UI / grid thing, so I cannot use the Before/After RecordPointerMoved stuff.

A WAG - have a bound control with =recno("youralias") as controlsource. It will, of course, be readonly. See whether change of recno() fires its.ProgrammaticChange() event. I think it may fire, but only after a refresh, which would make it more complicated... in case you invent a timer to refresh it, well then you can use the timer code to check for recno() change.

You may also put the code which would check for it in a skipfor clause of some menu item, these seem to be evaluated at appropriated times (but mind the context in that case - or make it in-form menu).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform