On Sun, May 5, 2019 at 2:45 PM pink via use-livecode < use-livecode@lists.runrev.com> wrote:
> Below is the script for a data grid and the stack script. > > The data grid times certain jobs, so if you press one, it switched to > timing > that job. > > The problem is, when I set the dgData for the grid, the rows are blank up > to > the row that I press, and none of the changed data appears. However, if I > just set it again in a different action it shows up correctly. That is, the > data doesn't seem to set correctly as part of my activateJob handler. If I > then try to set it again in a different mouseUp handler, everything shows > up > correctly. A LiveCode control cannot be deleted while it is running a script. That is what I think is happening here. When calling the handler that will refresh the data grid try using “send ... in 0 seconds” so that the refresh happens after the click within the data grid. -- Trevor DeVore ScreenSteps _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode