Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Manually calling AddCursor()
Message
De
28/05/2002 14:25:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00662085
Message ID:
00662109
Vues:
22
This message has been marked as the solution to the initial question of the thread.
Mel:

>However, in the v.7 OnLine help it says "Tables and views that are opened manually via USE commands, however, need to be added to the CDE with the AddCursor() method."

Only if you want them "managed" by the CDE/Datamanager. In the circumstances you mention, you dont have to put them in the CDE at design time or use addcursor() at runtime (unless you want to use facilities provided by the CDE or cursor object(s) on said table). However, I often add tables like this to the CDE at design time. It doesn't cost anything to do this and a quick look at a CDE tells you what tables are going to be used in process. Just my preference though.

>What brings all this up is that I will have a form that list all available reports (about 100), and I open up different different tables depending on which report is selected.

This is an eminently sensible reason to just use the "USE" command ad-hoc, rather than adding every possible table to the CDE.

HTH
-=Gary
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform