Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What cursors are in a DataSession
Message
 
À
14/10/1999 11:37:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00276307
Message ID:
00276387
Vues:
26
Adding a cursor object to the DE after it has already opened its tables does nothing but add an object that you can reference later. Why do you want object references to these? The object don't give you much control anyway...
>

Thanks Erik, I working on a tool for myself. It has a single form. The form has an open table method that allows me to pick a specific table to work on from an open file dialog. It could be any table so it's not in the forms DE (at design-time the DE is empty). Once I've selected the file, I set the buffering on the file to optomistic table.

My framework has methods to enumerate the cursors in the DE and build a collection. It also has methods for SaveData, RevertData, etc. these methods work with a CursorCollection that is built from the DE. (basically what you layed out).

My problem is the CursorCollection is empty when the form loads. I'm thinking I can just add a the cursor to the DE at run-time and have a RefreshCursorCollection method. Now my SaveData/RevertData methods work.

I had also thought about a AddDScursors method, that would add tables in the current DataSession to the CursorCollection. Thus elimating the need for the RefreshCursorCollection method.

I guess what I'm really trying to do is add the ability to use either the DE or the DataSession for building the collection.

I think I've got a handle on it now. Thanks for all the help.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform