Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I create a private data session programatically
Message
 
 
À
27/07/1998 15:31:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00121744
Message ID:
00121770
Vues:
22
>How can I call a module (form-less) that creates its own private data session, opens/closes its own tables, and then closes its data session?
>
>I can see how to do this by creating a non-visible form, but how do I do it without using a form?
>
>
>Bob

Hi Bob:
I havent tried this, but you could use a formset that has no forms.

The problem is that you must add objects to the formset in order for the objects code to run in the private datasession. You can only AddObject() forms to a formset. You might be able to add properties to the formset and CREATEOBJECT() what you need.
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform