Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor Adapters
Message
From
01/04/2023 15:40:44
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01686411
Message ID:
01686430
Views:
49
>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.

Yup, the help is a good source of head itch. I had the same feeling when I tried to read it and do something based on that. Better find a working example from anyone and start from there.

The approach I found best so far: have your own base CA class. Then build your individual classes from there, in code. The properties of each CA object are, well, all things you did so far related to an alias - set order, requery, all the cursorgetprop() stuff are actually its properties (probably written just that way in _access code of the raw class). Then anything that happens during tableupdate() (which you'll still do in code, but probably in ca.save() or your bizobject.save(), has listener code which is code (and can be overridden by you) in the ca - all he before/after stuff for new, delete, update, requery... And you can control it all.

It's the initial set of properties that I couldn't get from the help, and I was initially stuck there for a while... years ago. Once I got my hands on a ready example, I got lucky. Sorry, can't give you that because it isn't mine, I'm still using that (refined many times, also by me, but basically still belongs to the original author, he did the most).

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