Difference between revisions of "ISDBIniFile::Flush"

From MediaMonkey Wiki
Jump to: navigation, search
(Added info to avoid using Flush on versions of MM prior to build 1214)
 
Line 6: Line 6:
  
 
Introduced in MediaMonkey 3.1.0.1214.  
 
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)