The event MoveTo is one of a group of Move-events. This event is caused by a execution of code generated by the macro %%Perform in other action logic.
The macro %%Perform has an optional second parameter.
This parameter specifies which record to move to. If the value of this parameter is zero,
or if the parameter is not specified, the move is to the current record.
A positive integer value indicates the record number requested,
and a negative number denotes an offset back from the last record.
When that happens, MSM-Workstation will first process a Validate event. If action logic on that event causes execution of code from the macro %%NotOK the event MoveTo completes.
Otherwise if
Otherwise the SQL Data control moves to the requested record.
If there is no such record, the SQL data control is positioned after the last record (required record number too large) or before the first record (required record number too small) and the event MoveTo 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 MoveTo action logic is executed. If action logic on that event causes execution of code from the macro %%NotOK the event MoveTo completes.
Otherwise any action logic for the UpdateControls event is executed.
Go to the alphabetic list of events.