I'm new to JSL and Application Builder, so bear with me.
I'm trying to build a dialog box that has a series paired Number Edit Boxes. One of each pair represents a "start" time and the other a corresponding "end" time:
screenshot_386.png
I want to avoid the situation where the user puts in a "start" time later than the "end" time, or an "end" time prior to the "start" time.
My first thought was to add an "on change" script to each box, something like this for the "start" box:
If( (Start << Get) > (End << Get),
End << Set( Start << Get )
);
and like this for the "end" box:
If( Start << Get > End << Get,
Start << Set( End << Get )
);
But this doesn't work (in the sense that nothing happens when the unwanted condition occurs).
I'm probably doing something quite silly, but help would be appreciated.