Much like you we use either class variables or task variables depending on scope. I’ve often wished for a common registry of these constants in the name of clean code, but so far this approach has worked.
> On Jun 6, 2017, at 05:08, H.P. Noppe <email@example.com> wrote:
> Dear Omnis people,
> Like the subject states I would like to talk about custom constants. There are different ways to implement this in Omnis. The way I do it is actually in two ways.
> Use the combination of a file class for declaring the constant and a object class for initialising.
> Declare a constant as a class variable and set the init.value of the constant.
> Depending on how global a constant is needed I use either of the two.
> I am curious how you all lovely developers create constants in a way which keep them maintainable.
> Grtz Henk
> Manage your list subscriptions at lists.omnis-dev.com
Manage your list subscriptions at lists.omnis-dev.com