The function CountValuesByPattern returns the number of values, who follow a certain pattern.
Ini-files and extstates follow that scheme:
[section]
key=value
in your case
[menubox_EXAMPLE]
preset1=a bunch of data
It returns 0, as there's no value, which holds the string "menubox_EXAMPLE" in it, as value is "a bunch of data".
Look for "data" or "bunch", and it shouldn't return 0 anymore.
|