Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetPersistInfo - method of object PmTrend

Description:
Returns information regarding data saving on the disk.
Syntax:
GetPersistInfo(sType As String) As Variant
Calling:
vInfo = oTrend.GetPersistInfo(sType)
Parameters:
sType(String) Type of the required information that has to be returned by the method.
"type" - The method returns system name of the storage technology:
- "promoticcyclic" for Promotic binary file cyclic
- "accesscyclic" for Database Access cyclic
- "mssqlcyclic" for Database MS SQL server cyclic
- "oraclecyclic" for Database Oracle cyclic
- "mysqlcyclic" for Database MySQL cyclic
- "firebirdcyclic" for Database FireBird cyclic
"activefilename" - If the Storage type backup type configurator is set to storing to a disk file (Database Access backups (obsolete), Promotic binary file cyclic, Database Access cyclic), then the method returns the file name without path, otherwise the method returns the empty string "".
"activefilepath" - If the Storage type backup type configurator is set to storing to a disk file (Database Access backups (obsolete), Promotic binary file cyclic, Database Access cyclic), then the method returns the file name with path, otherwise the method returns the empty string "".
"activedatabase" - If the Storage type backup type configurator is set to storing to a database (Database Access backups (obsolete), Database MS SQL server backups (obsolete), Database MS SQL server cyclic, Database Oracle cyclic, Database MySQL cyclic, Database FireBird cyclic, Database Access cyclic), then the method returns the name of the database, where the data are stored, otherwise the method returns the empty string "".
Example:
VBScriptSelect and copy to clipboard

Dim sType, sFileName, sFilePath, sDatabase
sType = oTrend.GetPersistInfo("type")
sFileName = oTrend.GetPersistInfo("activefilename")
sFilePath = oTrend.GetPersistInfo("activefilepath")
sDatabase = oTrend.GetPersistInfo("activedatabase")

Pm.Debug "Storage technology: " & sType
Pm.Debug "File name: " & sFileName
Pm.Debug "The file name with the path: " & sFilePath
Pm.Debug "Database: " & sDatabase
PROMOTIC 9.0.0 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice