ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Invalid input functions
  • Characteristics of the verification/detection of controls that require data input/contain invalid data
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Builds a list of controls that require data input/contain invalid data. The controls are not marked as containing errors.
Example
arrInvalidControls is array of Control = InvalidInputListControl()
IF NOT arrInvalidControls.Empty THEN
Error("Problem")
END
 
ControlList is array of Control = InvalidInputListControl()
FOR EACH ÉLÉMENT c OF ControlList
c.BackgroundColor = LightRed
END
Syntax
<Result> = InvalidInputListControl([<Element used>])
<Result>: Array of Controls
Array of Control variables containing the list of controls that required data input/contain invalid data. This array is sorted according to the tab order of the controls.
<Element used>: Optional control name or window name
Name of the control or window to be checked. If the control is a container (Tab control, Supercontrol, etc.), all its controls will be checked.
If this parameter is not specified, all the controls in the current window will be checked.
Remarks

Characteristics of the verification/detection of controls that require data input/contain invalid data

The input will be checked in the following types of controls:
  • Radio Button control/ switch: if the mandatory input option has been activated (or property MandatoryInput to True), check that at least one option is selected.
  • Grading field: if the mandatory input option has been activated (or property MandatoryInput to True), checks that a grade has been allocated.
  • Combo in input: if the mandatory input option has been enabled (or property MandatoryInput to True), checks that a value has been entered or selected in the combo.
    If an input mask has been used, the function checks that the entered data matches this mask.
    If a custom mask with an InputMask variable is used, the verification is performed by executing the procedure associated with the CheckIfValidInput property of this mask.
  • Combo without input: if the mandatory input option has been enabled (or property MandatoryInput to True), checks that a value has been selected in the combo.
  • Input field: if the mandatory input option has been activated (or property MandatoryInput to True), checks that a value has been entered or selected in the Edit control field.
    If an input mask has been used, the function checks that the entered data matches this mask. If a custom mask with an InputMask variable is used, the verification is performed by executing the procedure associated with the CheckIfValidInput property of this mask.
Only active and visible controls are checked.

Miscellaneous

  • To highlight errors in controls that require data input/contain invalid data, use InvalidInputDetect or InvalidInputShowMessage.
  • Special case: Edit control or combo box with custom mask using a InputMask variable..
    If the control does not have focus when InvalidInputListControl is called, the text displayed in the control will first be formatted with the FormatOnEntry property of the mask before checking its validity.
Component: wd300obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help