SysRestoreRetainsΒΆ
This function of type DINT can be used to to restore the values of retain variables, which have been saved in a file (see SysSaveRetains). One of the following values will be returned:
1: OK
0: No program loaded
-1: The given file could not be opened
-2: The content of the file exceeds the size of the retain area
Input Variable | Data type | Description |
---|---|---|
stFileName | STRING | Name of the file which contains the retain variables (see SysSaveRetains) |