Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor Adapters
Message
From
30/03/2023 19:29:10
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01686411
Message ID:
01686426
Views:
64
Jon,
besides the list Victor provided look for
What's new in vfp8
What's new in vfp9
which explains Cursoradapter and the minimal changes made in vfp9

I prefer Cursoradapters because:

devtime:
If you have a slew of similar cursors
example 50 combo box cursors selected out of a single table
some can add,
some have more columns
working from inheritance is MUCH better than working with views and the code to make them update.
If enough cbo exist, you will start to create functions or objects to reuse previous work -
with Cursoradapter you already have a working template to enhance.
And yes, you have dangerous foot shooter if you dynamically modify in .init()
and somebody touches inheritance chain ;-)

dev+runtime
I prefer optimistic buffering standardized on a Timestamp field
(sometimes only an incremented "last write" counter as int4)
and fields logging last update author, last update TS, last update program/program part
which is a BREEZE to implement via inheritance,
much better than via code write-triggered from DBC

runtime: (largest for me!)
they offer granular hooks into the operation kicked off by tableupdate
if you need pre- or postprocessing, want to time certain operations
enable specific logging
and much more.

runtime:
it also gives you a nice place to group specific code for special cursors.
You can always jump from cursor to controlling cursoradapter
which will give you IMO a nicer "object" to place / handle special processing
even if not connected to TableUpdate()

runtime:
Having methods gives you wide range of "dirty tricks" if you have to massage
sources from different author who needs to embrace a totally new paradigm
(often from table usage to C/S)
I prefer cursoradapter prg source to code implemented in DB events in dbc.

my 0.22€
thomas



>Hey all,
>
>anyone got some examples of exactly how to use cursor adapters? I'm just not sure exactly how to use them. I've always gotten by with Remote Views and the like, but got curious about these adapters.
>
>I've already read stuff in the help file but I'm still scratching my head a bit.
>
>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform