ISDBApplication::Objects

From MediaMonkey Wiki
Revision as of 13:36, 21 March 2007 by Jiri (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CoClass SDBApplication, Interface ISDBApplication

Property Get/Let Objects(Name As String) As Object


Parameters

Name Type Description
Name String An identifier for object storage.


Property description

A collection for a temporary storage of any type of COM object during MediaMonkey running time. For example if a window is created by script that should remain visible while the script isn't running, the window object can be put to this collection in order to keep a reference to it.

Example code

If SDB.Objects[ 'Store'] Is Nothing Then    ' If the object isn't in collection yet...
  SDB.Objects[ 'Store'] = MyWindow         ' ... add it to the collection...
EndIf

SDB.Objects[ 'Store'] = Nothing               '  ... and now again remove it from the collection.