Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a new datasession programatically.
Message
From
03/02/1999 18:04:02
 
 
To
03/02/1999 17:39:24
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00183664
Message ID:
00183673
Views:
17
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform