- Gain of focus
- ScreenFirst, SetFocus and ReturnToCapture
- Error
- ReturnToCapture on a window
- ReturnToCapture on a Table control column
- ReturnToCapture on the current control
- ReturnToCapture on the last selected control
- Processes run when using ReturnToCapture
- ReturnToCapture and END:
- ReturnToCapture run in the event "Before closing with OK/Close button"
ReturnToCapture (Function) In french: RepriseSaisie Stops the current process and forces the input in the specified control, window or page. Versions 15 and later New in version 15
// If no value was entered by the user in the control IF EDT_Edit1 = "" THEN // Display a message and position the user in edit on the control Error("Enter a value") ReturnToCapture(EDT_Edit1) END
Syntax
ReturnToCapture([<Object name>])
<Object name>: Optional character string (with or without quotes) Name of control, column or window that will take focus (see Notes). If this parameter is not specified, the current control takes focus.To specify a control that belongs to a window other than the current window, <Object name> must be in the following format: <Window name>.<Control name>. Versions 15 and later New in version 15 Remarks Taking "focus" is represented in different ways: - Blinking cursor (or "Caret") for the edit controls.
- Dotted rectangle for the other types of controls (Buttons, List Boxes, Radio Buttons, etc.).
ScreenFirst, SetFocus and ReturnToCapture These functions have a different behavior: - ReturnToCapture stops the current process to force the input in the specified control.
- ScreenFirst describes the next control that will be in edit (when the current code stops and when the input resumes).
- SetFocus stops the current process, describes the next control that will be in edit and resumes the current process.
A WLanguage error occurs if <Object name> does not correspond to a control found in the current window or page. Business / UI classification : UI Code
This page is also available for…
|
|
|