View Single Post
Old 11-28-2019, 09:17 AM   #355
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

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.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote