Subscribe Bookmark RSS Feed

Set values of number col edit box?

pmroz

Super User

Joined:

Jun 23, 2011

I can't seem to set values for a number col edit box, separately from when it's created.

nw = new window("test",

        tablebox(

            neb = numbercoleditbox("Numbers", {}),

            teb = stringcoleditbox("Strings", {}),

    )

);

a = {1, 2, 3, 4, 5};

b = {"a", "b", "c", "d", "e"};

neb << set values(a);

teb << set values(b);

This code results in:

11292_numbercoleditbox.png

I need to add dynamically add numbers outside of window creation.

1 REPLY
pmroz

Super User

Joined:

Jun 23, 2011

Aha found it - using SET instead of SET VALUES does the trick.  Not obvious.