INI Arrays
#4
You could use several approaches here:
- Store the strings in a single value in an INI file, separated by a separator: "value1|value2|value3", then use StringSplitAndTrim() on the string value you read from the INI file
- Use a config file that is a Lua file. Such a config file must not be stored in the plugin's folder, but then is quite free to use any Lua to provide the configuration; then use Lua's dofile() function to read the config. The only downside is that it's difficult-to-impossible to make changes to such a file programmatically. Gallery plugin uses a Lua config file, you can use that as a reference.
Reply
Thanks given by:


Messages In This Thread
INI Arrays - by tryy3 - 09-12-2014, 09:34 PM
RE: INI Arrays - by LO1ZB - 09-12-2014, 10:10 PM
RE: INI Arrays - by tryy3 - 09-12-2014, 10:32 PM
RE: INI Arrays - by xoft - 09-12-2014, 10:36 PM
RE: INI Arrays - by tryy3 - 09-12-2014, 11:29 PM
RE: INI Arrays - by tigerw - 09-13-2014, 03:54 AM
RE: INI Arrays - by tryy3 - 09-13-2014, 05:26 AM
RE: INI Arrays - by Seadragon91 - 09-13-2014, 06:12 AM
RE: INI Arrays - by tryy3 - 09-13-2014, 08:22 AM
RE: INI Arrays - by xoft - 09-13-2014, 09:10 PM



Users browsing this thread: 1 Guest(s)