On Yesterday at 4:32pm, KW=>Kirk Wylie <[EMAIL PROTECTED]> wrote: KW> KW> Okay, another real brute-force approach which is taken by old-skool KW> Java systems (i.e. it's a real idiom, and is used in such places as KW> the security.policy file amongst other places) is to use property KW> files, but in a specific way for ordered, multi-value properties like KW> this: KW> - Create a "key", such as "m7.my.listbox" KW> - Add a property which is a count, like "m7.my.listbox.count" KW> - Add individual properties which are numbered, from 0 to (count - 1): KW> "m7.my.listbox.0", "m7.my.listbox.1", etc. KW> In your case, you might then have a property file which would look like: KW> desc.phone.types.count=3 KW> desc.phone.types.0.mnemonic=B KW> desc.phone.types.0.value=Business Tel. KW> desc.phone.types.1.mnemonic=C KW> desc.phone.types.1.value=Cell Phone KW> desc.phone.types.2.mnemonic=D KW> desc.phone.types.2.value=Pager KW>
Kirk, I definitely like this idea. Thanks for keeping the creative juices flowing. KW> KW> [..snip..] KW> KW> Just an option. You'll probably hear soon enough about the more elegant KW> approaches that you've not discarded. But in my experience, when all KW> else fails, Java Property files tend to solve a lot of problems. I'll leave the esoteric ideas for later and try the simple approach first. KW> KW> Kirk Wylie KW> M7 Corporation KW> -- Haroon Rafique <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

