Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a new datasession programatically.
Message
De
03/02/1999 18:04:02
 
 
À
03/02/1999 17:39:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00183664
Message ID:
00183673
Vues:
16
You need to create a new class based on the DataEnvironment base class programatically. You can't use the class designer to do this. Somthing like this:
DEFINE CLASS MyDE AS DataEnvironment
...
PROCEDURE Init()
   THIS.AddObject("Cursor1", "Cursor")
   WITH .Cursor1
      .CursorSource = "MyTable"
      .Database = "MyDatabase"
      .Alias = "MyTable"
      .Order = "SomeOrder"
   ENDWITH
   ...
ENDPROC
...
ENDDEFINE
HTH

>I want to programtaically create a new datasession, open a few tables, dow some work, then release the dataession restore the previous datasession as the current on.
>
>Basically, I want a new, private datasession programatically.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform