ISDBIniFile::Keys
From MediaMonkey Wiki
CoClass SDBIniFile, Interface ISDBIniFile
Property Get Keys(Section As String) As SDBStringList
Parameters
| Name | Type | Description |
|---|---|---|
| Section | String | A section where to find all the keys. |
Property description
Returns a list of strings composed with the key and value in a given section. The string has the format "key=value" (without quotes).
Example code
This example splits the returned key string into a key and value.
Set KeyValueList = SDB.IniFile.Keys("Appearence") For i = 0 To KeyValueList.Count - 1 KeyValue = KeyList.Item(i) Key = Left(KeyValue, InStr(KeyValue, "=") - 1) Value = Left(KeyValue, InStr(KeyValue, "=") + 1) ' Do something with key and/or value Next