RunTime - method of object PmTrend

The method saves all current values from the Data page with the specified time in the tTime parameter.
RunTime(tTime As Date, nTimeType As Long) As Boolean
oTrend.RunTime tTime, nTimeType
tTime(Date) Time of the written values
nTimeType(Long) Time type of the written values
1 - tTime is "local time" (the "standard time" in the standard season and the "daylight-saving time" in the daylight-saving season, corresponds to the computer time according to the local settings)
2 - tTime is "standard time" (in the daylight-saving and standard seasons).
Return Values:
true - If the record has been written successfully.
false - otherwise

For calling the method with the current time, see the Run method.

If the option Read only (new records can't be written) is set, then the method isn't functional, i.e. it isn't possible to write into the trend archive.

By calling the method it is possible to do backward writing on setting the Storage configurator to Database MS SQL server cyclic or Database Access cyclic (it is possible to write even the records with the older time than the time of the last written record). If another type of setting then the two above mentioned, is set, then backward writing is not possible.

If the Save variable changes only setting is set, then the values storing is optimalized, i.e. each time this methosd is called there does not have to be a data saving.

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