DIAdem Help

Method: ImportStore for Root <DataPlugin>

  • Updated2024-09-12
  • 1 minute(s) read

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)
ObjectRoot <DataPlugin>
Object with this method
FileNameString
Specifies the name of the data file.
PluginString
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

Log in to get a better experience