Thanks. The snippet you provided works of course but I am looking for something that I can
integrate in my ui. I don't want to show a pop up message. There are many elements in my UI
that require this status feature and therefore I want something that I can add to my New Window()
as a display box and use as a status bar.
I am looking for something like this:
cap = "";
some_test_function = Function({},
Show("What?");
for (i = 1, i <= 1000000, i++,
if (mod(i, 1000) == 0,
//Something like this!!! Not working of course.
cap << Set Text("Processing " || char(i) || " records");
wait(0);
);
k = i^3;
l = k * 4 + i^4;
);
);
nw = New Window("test",
bb = Button Box("test caption", some_test_function),
cap = caption("processing"),
);
I tried to use the busy light as well but that has the same problem. Moreover, I don't know if the above piece, if corrected, will work when there are lots of table operations inside the for loop instead of a simple counting. I might have to use wait, maybe. So that's why I am stuck with the text box option.
I would highly appreciate any other solution that can be used in a UI scenario with multiple elements having access to the same status display box.
Thanks!