ISDBIniFile::Flush: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
(Added info to avoid using Flush on versions of MM prior to build 1214)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:


Saves all changes made to the ini file to disk. This is automatically done by MediaMonkey when all instances of the ini file (i.e. in all scripts!) are destroyed. You can call this for additional safety, when needed.
Saves all changes made to the ini file to disk. This is automatically done by MediaMonkey when all instances of the ini file (i.e. in all scripts!) are destroyed. You can call this for additional safety, when needed.
Introduced in MediaMonkey 3.1.0.1214.
===Example code===
One may wish to use code such as the following VBS script code to avoid the Flush command being executed on versions prior to MediaMonkey build 1214:
<source lang="vb">
If SDB.VersionBuild >= 1214 Then myIniFile.Flush
</source>
(change myIniFile to whatever else of course)


[[Category:Scripting|{{PAGENAME}}]]
[[Category:Scripting|{{PAGENAME}}]]

Latest revision as of 00:23, 18 July 2009

CoClass SDBIniFile, Interface ISDBIniFile

Sub Flush


Method description

Saves all changes made to the ini file to disk. This is automatically done by MediaMonkey when all instances of the ini file (i.e. in all scripts!) are destroyed. You can call this for additional safety, when needed.

Introduced in MediaMonkey 3.1.0.1214.

Example code

One may wish to use code such as the following VBS script code to avoid the Flush command being executed on versions prior to MediaMonkey build 1214:

If SDB.VersionBuild >= 1214 Then myIniFile.Flush

(change myIniFile to whatever else of course)