The control in focus is not the Edit control.
This function is evaluated in the flow when the Magic xpa engine is not parked on an Edit control.
The handler is invoked for an event with the Force Exit set to Control or Record.
The start position is not in the string.