Default Setting Values

In the simplest case, you have a setting with one member, and one default value to provide for it... but what to do when the setting is of string or dot-decimal type and the intended default value for this setting is NULL? Don't just leave the field empty, use a special character ^ instead!

Several default values may be supplied, in which case they should be separated by /, like this: "abc/def/123". This string defines three default values. And what if you have, say, five members in this setting? Then, member 0 will be initialized to "abc", member 1 — to "def", and members 2 through 4 — to "123". And how about this string — "abc/^/123"? It specifies that the second initialization value is NULL.

Naturally, ^ and / can't be used in setting strings because they are "special" characters carrying a special meaning. If you need to have them inside the initialization value itself, use C style escape sequences. For example, if the default value is supposed to be "2/3" then write "2 \x2F3".

The total size of the default value field cannot exceed 255 characters. Hence, you may not be able to provide all the default values you want to. Say, you have a byte setting with 100 members. The default value for each member can take three characters plus the separator. That's up to four characters per one default value. Only 64 such values will fit in 255 characters.