MSM-Workstation
Events

MoveNext

The high level event MoveNext may occur for components of the type SQL data.

This event occurs when a SQL Data control moves to the next field in sequence as the result of the execution of code generated by the macro %%Perform in other action logic.

Unless the SQL Data control is ReadOnly, MSM-Workstation will the process an UpdateRecord event. The SQL Data control then moves forward to the next record.

If there is none, the SQL Data control remains on the first record and sets the variable SQLCODE=100 and does not execute any MoveNext action logic. Otherwise it sets the variable SQLCODE=0, loads the bound controls from the new record and then executes any MoveNext action logic.

The event MoveNext is one of a group of Move-events (MoveFirst, MoveLast, MoveNext, MovePrevious and MoveTo).

This event is caused by a execution of code generated by the macro %%Perform in other action logic.

When that happens, MSM-Workstation will next process a Validate event. If action logic on that event causes execution of code from the macro %%NotOK the event MoveNext completes.

Otherwise if

MSM-Workstation will process an UpdateRecord event. If action logic on that event causes execution of code from the macro %%NotOK the event MoveNext completes.

Otherwise the SQL Data control moves to the next record.

If there are no such records, the SQL data control will remain at the last record, if any, and the event MoveNext completes.

Otherwise, if there are any list-type controls on the window that are bound to one of these SQL Data Control components (see the property ChoiceField), then those lists are loaded from the new record. After this, any MoveNext action logic is executed. If action logic on that event causes execution of code from the macro %%NotOK the event MoveNext completes.

Otherwise any action logic for the UpdateControls event is executed.

Go to the alphabetic list of events.