Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for specific advice when using CursorAdapter
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01060454
Message ID:
01060478
Views:
14
>We're currently in the process of starting to replace all the cursors/tables/views in our app's data environment with VFP-native cursor adapters, so as to help in our redesign of the app to support multiple back ends. Subsequently, we'd like to try to avoid using VFP-data specific functions and try to be more SELECT/SQL-oriented in our approach.
>
>Prior to CA - when a user deletes a record from a form, it gets marked as deleted and can be reused at a later time if a new record is added to the same table. When working with VFP-native CA, we're kind of stuck on how to deal with deleting a record, and its aftermath. We'd like to allow the user to be able to re-add the same key, if need be. We also have some tables that have 2 or 3 key fields in the record as well.
>
>Any thoughts would be appreciated.
>
>Laterness,
>Jon

Jon,
You can filter all your indexes by NOT DELTED() (they are optimizable now).
Other way is to create yourown DeleteCmd. But if you plan to move to SQL Server (or other SQL DB) there is no need to do this.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform