![]() |
Subscribe to DataMgr |
Visit this group |
To use DataMgr, follow these steps:
Application.DataMgr = CreateObject("component","DataMgr").init("mydsn")
Note that "mydsn" in this example is the datasource. That could also be a variable that holds the value of your datasource.
If you don't have Java access enabled, you will have to specify the database as well:
Application.DataMgr = CreateObject("component","DataMgr").init("mydsn","MSSQL")
DataMgr can also be instantiated with no datasource argument at all. If Application.datasource exists, it will use that as a default. Otherwise, it will use the simulated database.
Application.DataMgr = CreateObject("component","DataMgr").init()
The "init" method has the following arguments.