Custom constants
On Jun 7, 2017, at 04:24, Michael Monschau <michael@brainydata.co.uk> wrote:
>
> I just had a quick look (my PDFDevice and the HTML example manipulates the list of constants to add a custom runtime generated constant) and the Omnis list is a simple two column list with an ID and the constant text data which includes constant names, descriptions etc. This list structure is likely never to change.
>
> So YES we could do that as a mini-project at EurOmnis. The component can read a text file and build that list manually.
How about storing the constant data in JSON?
{ [
{ name: “kFoo”,
description: “Every developer needs foo”,
value: 1
}, {
name: “kBar”,
description: “And they need a bar for after work”,
value: 2
}
] }
Alex
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com