When the CtrlGoto function is used, Magic xpa internally adds a Control Hit event to the runtime events queue. This means that the control will get focus asynchronously after the event is extracted from the queue (when the application becomes idle).
The row number relates to the visible rows; this means that if the table shows 10 rows, a value of 11 will be ignored. If you want to go to a record that is not visible, use the LocateAdd function.
For Online tasks, if the control you want to go to is a subform or a frame, then the CtrlGoto function cannot be used in the Task Prefix or Record Prefix logical unit since the subform’s task is not loaded yet. Instead you can raise a user event with Wait=No from the Task Prefix or Record Prefix and use the CtrlGoto function in it.
|