Method: ImportStore for Root <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: ImportStore for Root <DataPlugin>
Method: ImportStore for Root <DataPlugin>
Imports a data file with a specified load method. You can only import data stores that are based on the TDM model.
Note that you must not define any groups or properties for the Root object before calling this method. After importing the data file, you can use the Root object as usual.
Object.ImportStore(FileName, Plugin)
| Object | Root <DataPlugin> Object with this method |
| FileName | String Specifies the name of the data file. |
| Plugin | String Specifies the load method you use. |
The following example creates a temporary folder and unzips the ZIP archive FileName in this folder. Then the example imports the data of the first file with the load method described in the ATFX DataPlugin:
Sub ReadStore(FileName) Dim TempFolder TempFolder = AutoRemove.CreateFolder() Dim FileList FileList = Unzip(FileName, TempFolder) Call Root.ImportStore(TempFolder & FileList(0), "ATFX") End Sub